[thelist] Images dimensions in CSS?

Jonathon Isaac Swiderski jonathon.swiderski at oberlin.edu
Thu Feb 8 15:32:31 CST 2001


If you submit a compliant page to the W3C's CSS validator, it returns your 
'CSS check' badge with the dimensions specified in an inline style  (i.e., 
<img src="x.gif" style="width : 16px; height : 16px; border : 0;">).  I've 
found that this is equally effective from an external stylesheet (I use 
the class="" att.), and the w3c html & css validators don't mind a bit. 
NS 4.7 seems to be ignoring the 'border' part, though.  probably also the 
width & height, too, although with just three 88x30 pictures, i haven't 
found this too much of an issue. . .

--On Thursday, 8 February, 2001 10:25 AM +0000 Andy Waite 
<Andy.Waite at company-net.com> wrote:

> Since the main reason for using CSS is to seperate content from
> presentation, should CSS be used in place of of width and height
> attributes for images?



jonathon isaac swiderski                          135 west lorain street
http://www.oberlin.edu/~jswiders/vol_index.htm                 ocmr 2678
mailto:jonathon.swiderski at oberlin.edu                   oberlin oh 44074
"anyone can be great, because anyone can serve" - martin luther king, jr




More information about the thelist mailing list