Navigation coding?

Out of context: Reply #6

  • Started
  • Last post
  • 7 Responses
  • sublocked0

    FWIW, people started using UL tags (unordered lists) of links because semantically it's more appropriate than simply a collection of DIVs.

    It's a throwback to how older text-based browsers behave, like lynx on a unix system - but I'm wondering if these are simply vestiges of a time long gone.

    Something to ponder for you HTML nerds.

    Also, the basic CSS for doing something like that would be kinda like this:

    ul.navigation {
    margin: 0px;
    list-style-type: none;
    }
    ul.navigation li {
    float: left;
    margin-right: 10px;
    }
    ul.navigation li:last-child {
    margin-right: 0px;
    }

    ...don't forget to throw a clearing element to clear the floats afterwards too...

    • it IS a list, though. That's isn't numbered. A collection of DIVs isn't anything. Code what you mean !! :)mikotondria3

View thread