The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Simple html question

  • # July 8, 2009 at 1:45 pm

    So I am making this ENORMOUS mega-menu and Im obviously doing something wrong as I get 87 errors when I test the fragment on w3c (xhtml strict).

    Here is a piece of the code. problem area described below.


    On the 2nd line, you see how I have a link (within the li)? For some reason it does not like that at all. That is the main navigation and the list beneath is the dropdown. Am I putting something in the wrong order? I don’t get it lol.

    I have tried taking the column divs out (does not fix the problem).

    # July 8, 2009 at 2:13 pm

    Well I just saved your code inside a

    < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">

    page and ran it through the validator at and got 20 errors. Removed all of the divs and it validated.

    I’m guessing from the "div class column" that you want to break it apart for styling. I think I would go with 4 separate ul’s.

    # July 8, 2009 at 5:20 pm

    haha… I think I have been playing with this for too long and it is turning into a huge convoluted monster. I am going to start fresh (sans divs) and go from there.

    Thanks for your help :P sometimes you just need an extra set of eyes :shock:

    # July 12, 2009 at 1:51 pm

    You could also try using classes instead of divs…

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed