> From: Scott Reston > Does this suggest that > inline elements cannot have a width property at all?
Yes. Any browser that applies width specified in CSS to an inline element (or even a block element that has been set to display:inline) is not behaving in line with the spec. > Can you clarify what the spec means by 'replaced'? http://www.w3.org/TR/REC-CSS2/conform.html#replaced-element In simplified terms, replaced elements are those that...heck...are replaced by something else when displayed. the IMG element is replaced with the image itself, INPUT,TEXTAREA,SELECT are replaced with UI elements for the form widgets, OBJECT is replaced with whatever external piece of "multimedia" (god I hate that term) you specify. To take the example of IMG, this has an intrinsic dimension (defined just below "replaced element" on the link above) in that the image is made up of a fixed number of pixels, so the width/height are part of the image itself. Although it's inline, the intrinsic width is then honoured in the display (but again setting any width in the CSS is still ignored) Hope this makes some kind of sense...as I'm starting to confuse myself here ;) Patrick ________________________________ Patrick H. Lauke Webmaster / University of Salford http://www.salford.ac.uk ***************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help *****************************************************
