W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2003

RE: Declaring <h1> display:inline creates invalid XHTML (Strict )

From: Matthew R. Moore <mrmoore@truman.edu>
Date: Thu, 14 Aug 2003 16:56:39 -0500
To: <carl.myhill@ps.ge.com>, <w3c-wai-ig@w3.org>


Try replacing your <div><span><ul> with <div><ul> and /maybe/ try to mesh
the styles you have defined for the classes using CSS inheritance rather
than the nesting of tags - that should fix the validation problem.  You
could also more direclty influence the <ul> tag with a class applied to it
via CSS.

Hope this helps, Matt.

Matthew R. Moore | mailto:mrmoore@truman.edu
Human Resources, Truman State University
106 McClain Hall, 100 East Normal, Kirksville, MO 63501
Phone: 660.785.4031 - Fax: 660.785.7520
http://hr.truman.edu | http://businessoffice.truman.edu

-----Original Message-----
From: w3c-wai-ig-request@w3.org [mailto:w3c-wai-ig-request@w3.org]On
Behalf Of carl.myhill@ps.ge.com
Sent: Thursday, August 14, 2003 5:59 AM
To: w3c-wai-ig@w3.org
Subject: RE: Declaring <h1> display:inline creates invalid XHTML (Strict

Bill Said:
>I'm at a loss why you have used a subject line that suggests a CSS rule can

>create invalid HTML.  If the HTML is valid, the styling cannot change that

Hi Bill

I'm new to all this!  I guess my subjectline is confused because I am. I
cant validate my CSS until my XHTML validates. I guess because I have both
in the same file at the moment it is straining my brain.

Anyhow, it turns out that what I did wrong was to put the <h1> inside a
<span>, not that I treated it as inline. It turns out the span wasn't
necessary so I fixed it easily enough.

What is proving harder is the fact that my horizontal <UL> also sits within
a <Span> at the moment and that is causing the XHTML not to validate too.
Need to scratch my head a bit more about that.


Received on Thursday, 14 August 2003 22:03:05 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:25 UTC