afridy — 2011-09-14T13:06:17-04:00 — #1
if you pls visit this link ( http://aone.lk/demos/pc_detail.php?pcid=31) you can see 4 thumbnail images. it has a horizontal aliment problem.
how to fix it :rolleyes:
c_ankerstjerne — 2011-09-14T13:21:01-04:00 — #2
You need to fix the faulty code and set a hight and width for the images first, as this may solve the problem.
afridy — 2011-09-14T13:29:01-04:00 — #3
you felt lazy to open ur firebug and shoot at those thumbs right
frankly i did not get ur point. if there is a faulty code which i know, i would have fixed it already
afridy — 2011-09-14T13:59:50-04:00 — #4
c_ankerstjerne — 2011-09-14T14:05:44-04:00 — #5
Well, I don't use Firebug. I am old-fasioned, so I debug by looking at the code
For starters, go through the list at http://validator.w3.org/check?uri=http%3A%2F%2Faone.lk%2Fdemos%2Fpc_detail.php%3Fpcid%3D31&charset=%28detect+automatically%29&doctype=Inline&group=0
You should also change your DOCTYPE to strict, rather than transitional. And ideally to HTML 4.01 too, but that's a different story intirely, and XHTML 1.0 Strict will do for all practical purposes.
Specifically, you have a problem here:
You don't have a closing
>. While this is technically valid in HTML, it's invalid XHTML, and in either case you shouldn't rely on it HTML, as no commercial browsers support it.
afridy — 2011-09-14T14:19:14-04:00 — #6
thanks C. Ankerstjerne for the valuable suggsions.
how do i missed that >. hmm.. now i fixed it.
sure ill take a look at doc type think also. coz i never bother about those declarations.
my dream vewr just put the doc type and all for me when i take a new html or php page.