Home › Forums › CSS › Nested div positioning issue › Re: Nested div positioning issue
May 6, 2012 at 10:17 pm
#102422
Participant
A
can only contain
elements as direct descendants/children (and the
s can contain all kinds of elements).
What you have, is DIV
s and IMG
s in the UL
that are not wrapped in LI
s.
Start with fixing that and then position your elements the way you want them.
You also may want to reset your UL
s and LI
s, 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.