On Apr 6, 2008, at 2:41 AM, Alan Gresley wrote: > This is happening in IE6, IE7 and IE8. Have a look at this. > > <img src="" alt="home button image" class="button"/> > > change it to this. > > <img src="" alt="home button image" class="button" /> > > > You had malformed XHTML since you had no space between "button" and > the > forward slash />.
No. No. And again, no. The first code snippet is perfectly _valid_ and welformed XHTML. The problem is that IE can't handle XHTML. The space before the '/' is only allowed for backwards compatibility with older UA, per Appendix C [1] (search for posts and articles by David Dorward on the subject, as this is basically OT for this list) HTML 4.01 (strict) is a good way to code html documents, especially when you serve them as text/html - which is what most people do, anyway. [1] <http://www.w3.org/TR/xhtml1/#guidelines>, more specifically, C.2. Empty Elements Philippe --- Philippe Wittenbergh http://l-c-n.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/
