Friday, September 24, 2010

CSS Clearfix Solution

So as I was working on my website the other day, I came across something very annoying. Apparently when you have 'floating' divs of text or pictures or whatever inside of a container, the height of the container does not expand as the text or pic divs inside of it do. It is because when you use the 'float' command, the floating element is not actually recognized as a definite element that takes up space inside of the div. In other words, it appears like it is on another layer.
If any of you guys are experiencing the same problems, go to http://www.webtoolkit.info/css-clearfix.html and follow the instructions. It does wonders I tell ya :)

No comments:

Post a Comment

Followers