Bob Cohen wrote:
> I'm trying to get my template to validate xhtml strict and behave  
> well in the various browsers when displaying an image. http:// 
> www.mojotools.com/priv/tst/d/3mb-d.html works in FireFox Mac/Win,  
> Safari, IE5 - 7 with the following html:
>
> <img src="hedTie.gif" alt="" width="78" height="158" align="top"  
> align="top" />
>
> But . . . W3W's code validator complains about align="top" and  
> border="x"
>
> I rewrote the code to:
>
> <img class="alignTop" src="hedTie.gif" alt="" width="78" height="158" />
>       ^^^^^^^^^^^^^^^^
>
> And created a CSS rule
>
>       img.alignTop {
>               align: top;
>       }
>
> which does validate.  However, doing so introduces a break between  
> the header and the body in IE5-7.
>
> http://www.mojotools.com/priv/tst/d/3mb-d-3.html
>
> Thanks,
>
> Bob
>   



/I think/ adding this selector to your style sheet may close all image 
gaps IE is leaving for lowercase descenders and eliminate the need for 
any css/markup class to do so.

img {display: block; border : 1px solid fuchsia; }

Subjective: A sensual mood combined with readability is a challenge...

Best,
~dL



-- 
http://chelseacreekstudio.com/

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to