Thanks Lea. I'll remove the px from the HTML and no longer go crazy!

Lea de Groot wrote:
> Patti Evans wrote:
>   
>> Can someone explain to me why Tidy gives the following warning:
>>
>>     - Warning: <img> attribute "width" has invalid value "74px" -
>>
>> Aren't <img> width and height supposed to be given in px? Could it be 
>> because the image is wrapped in <a> tags? The other images on my page 
>> don't get the warning.
>>     
>
> No, only CSS takes units - HTML assumes px.
> So
> <img src="something.jpg" width="74" height="10" alt="something">
> is the correct syntax
>
> HIH!
> Lea
>   


---
[TotalNet (www.totalnet.us) has scanned this E-mail for viruses using Declude 
Anti-Virus]

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to