Forums

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

Home Forums CSS CSS Question :) Re: CSS Question :)

#83546
wolfcry911
Participant

I think you guys might be confusing the OP. First, the clearfix is NOT needed. A floating element (the ul) will automatically contain any floating children (one of the containment methods). Second, the menus (ul) should be floating to the right to place on the right side (your examples are very narrow and show it as on the right, but make it wide and its not so). You can float the children (li) to the left to maintain the correct source order. Third, the clearfix is but one of several ways to contain floats (using an extraneous div being the worst, as far as semantics are concerned).