[css-d] validation

2006-10-17 Thread Patti Evans
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.

Thanks,
Patti

---
[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/


Re: [css-d] validation

2006-10-17 Thread Patti Evans
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/


Re: [css-d] validation

2006-10-17 Thread Patti Evans
Thanks so much for all the responses to my TIDY validation question (and 
to those who politely reminded me that my question was HTML- rather than 
CSS-related).

However, some of the responses have lead to something I've wondered 
about which *is* CSS-related. Does setting image dimensions in a style 
sheet and leaving them out of the HTML cause problems in any browsers?

Thanks,
Patti

---
[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/