pretty new to this game, but looks like this forum contains some pretty ace stuff.
about ul, when coding the CSS for a ul and li, if i was making a horizontal list using floats, and i defined "float:left" in the li class, and did NOT do the same for the ul i notice that some funky things happen. if i define a background color of green for the ul then if i do not include "float:left" then the background is gone and the list items seems to be outside the ul section.
it seems that the position must be defined in both the ul and li sections in the css.
can anyone tell me why? why is not enough to just define the li to float left and have it be contained inside the ul.
When you float things
When you float things they're taken out of the flow of the document which means their container doesn't have an awareness that they're there. So in your case, the ul ends where it starts because all the content is floated. Floating containers and setting their width is one way to get containers to expand to contain floats. Other solutions are to add overflow: hidden to the ul or to give it a height.
ah yes, what a lovely
what a lovely answer, makes perfect sense.