LI not contained under UL

I have a floated list that I want to have a background for. However, when I set styles for the UL, the background is small and does not contain the list elements.

I have also tried another approach, wrapping the list in a div and styling that div.

It does not work, how do I go about containing the list elements.


You can see the problem here: SpatialVoid :: Portfolio

I’m assuming your floating the li. Then you have to clear/contain the floats. Here are all the ways to do so.

haha linking to your own site, thanks! it worked :slight_smile: