Grow your CSS skills. Land your dream job.

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.

    Code:

    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.

    FYI:
    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

    Code:
    < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    page and ran it through the validator at http://validator.w3.org/#validate_by_input 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.

*May or may not contain any actual "CSS" or "Tricks".