Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Nested div positioning issue Re: Nested div positioning issue

#102422
Senff
Participant

A

    can only contain

  • elements as direct descendants/children (and the

  • s can contain all kinds of elements).
    What you have, is DIVs and IMGs in the ULthat are not wrapped in LIs.

    Start with fixing that and then position your elements the way you want them.

    You also may want to reset your ULs and LIs, using something like this:

    nav ul, nav ul li {
    list-style-type:none;
    margin:0;
    padding:0;
    }

    Though an even more generic CSS reset style is even better, although that may break stuff since you developed everything without it so far.