Angus Leeming wrote:

> My take on José's LyX archaeology page
> http://www.devel.lyx.org/~leeming/www-user/archaeology/lyx_timeline.php
> isn't validating as XHTML 1.0 ATM because it contains multiple blocks:
> 
> <dl id="a">
>   contents
> </dl>
> 
> W3C's validator complains with lots of:
> Line 202, column 10: ID "a" first defined here
>  <dl id="a">
> Line 232, column 14: ID "a" already defined
>  <dl id="a">
> 
> 
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.devel.lyx.org%2F%7Eleeming%2Fwww-user%2Farchaeology%2Flyx_timeline.php&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&ss=1
> Equivalent URL: http://tinyurl.com/64uvw
> 
> Can any HTML wiz help me out here? I've tried replacing "id" with "class"
> and with "name" but that just foobars the markup.

Forget it. "class" works so long as I change the style sheet too. The page 
now validates.

-dl#a{...}
+dl.a{...}

-dl#a dt{...}
+dl.a dt{...}

-dl.a dd{...}
+dl.a dd{...}

 /*Creates the horizontal border between each *row*.*/
-dl#a > dd + dt,
-dl#a > dd + dt + dd{
+dl.a > dd + dt,
+dl.a > dd + dt + dd{
        border-top: 1px #A5BFD6 solid;
 }

-- 
Angus

Reply via email to