WordPress.org

Ready to get started?Download WordPress

Forums

Validation problem (8 posts)

  1. dawg
    Member
    Posted 9 years ago #

    After working with several themes, changing them back and forth I finally tweaked the site to how I want it with a nav bar included.
    The side bar is where I am having troubles as it has been put together roughshod and is now giving me troubles. To complicate things I ran Tidy witch butchered the layout or at least threw it into quirks mode.
    Here is how it looks and is what I want, but validate it does not
    http://www.cafe789.com/kyles_eyes/

  2. NuclearMoose
    Member
    Posted 9 years ago #

    Well, one of the problems you have is that you have put an <h2> element inside of a <ul> element. That's a no-no.

  3. Kafkaesqui

    Posted 9 years ago #

    Problems all seem minor, related to <li> tags:

    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.cafe789.com%2Fkyles_eyes%2F&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&ss=1

    Note that in the XHTML spec, the <h#> tags are not considered valid inside list elements. Think about putting header text inside <span> tags with their own class, and assign properties to them (i.e. size, bold) through your css.

  4. dawg
    Member
    Posted 9 years ago #

    Thanks for the tips, I am so use to static pages that this combination of php is throwing me off.

  5. dawg
    Member
    Posted 9 years ago #

    Kafkaesqui Could you please show me an example of what the code should look like? My dyslexic mind is driving me crazy as I can not see the problem after an hour of trying to rectify this. Thanks in advance.

  6. NuclearMoose
    Member
    Posted 9 years ago #

    <ul>
    <li>List item</li>
    <li>Another item</li>
    <h2>Headline</h2>
    <li>Item 3</li>
    </ul>

    Would have to be:
    <ul>
    <li>List item</li>
    <li>Another item</li>
    </ul>
    <h2>Headline</h2>
    <ul>
    <li>Item 3</li>
    </ul>

  7. dawg
    Member
    Posted 9 years ago #

    Thanks NuclearMoose
    I will correct everything that is out of whack

  8. dawg
    Member
    Posted 9 years ago #

    Thanks to NuclearMoose for the clue my site now validates, I really am dyslexic, I could never do Algebra in school but for the most part get code right

    http://www.cafe789.com/kyles_eyes/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.