CSS Tips and tricks…

I was just working with Tom on trying to get some CSS to work properly for a project he’s working on.

The problem was divs flowing outside their parents. I was reminded of some pages I used to have up which demonstrate various div layout issues and show some fixes. I have now added them back into this site and they are here.

They key point for quite a few of the solutions there and hopefully for Toms’ solution (except its not quite finished yet) was that sometimes if you have some floats knowing around, it can be useful to have another, empty div with a style set to clear:both; this forces the floating to stop and makes the parent div expand (or should do anyway).

Oh yeah, an important resource that helped me to solve these problems was Eric Meyer’s site.

Share

2 thoughts on “CSS Tips and tricks…

Comments are closed.