[thelist] Image labels not centered in Firefox

Brian Cummiskey Brian at hondaswap.com
Wed Nov 23 10:05:44 CST 2005


Stephen Toney wrote:

> http://65.209.2.12/alignment_problem.htm

> In IE6/Windows the company names are centered under their logos, as desired, but in FF 1.0 Windows and Netscape 7 Windows the names are left-aligned in the table cells, although the logos are centered. How come? Does the <br> interfere with the centering inside a cell? (I'm using the transitional doctype.)

> I've tried change the "align" attribute of the <img> to left, right, and bottom, but the text is still aligned left.
> Thanks in advance for any advice! (Please, no flames about using tables! I know, I know...)

No flame for the table, nor the highly in-accesible code.... but i will 
flame for posting invlid code for review :)

http://validator.w3.org/check?verbose=1&uri=http%3A//65.209.2.12/alignment_problem.htm

ALWAYS validate your code before submitting to the list, as a lot of 
times, invalid code can sway the way a page renders.



Your big table that's causing problems is because your css is invalid. 
once again, this would have come up in the validator.

http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3A//65.209.2.12/alignment_problem.htm

<td 
style='text-align=center;font-family:Arial,Helvetica,sans-serif;font-size:12px;color:#999999;font-weight:bold'>



text-align=center is wrong.
it's:
text-align: center;








More information about the thelist mailing list