Posts Tagged ‘overflow’

Running Through Floats

Tuesday, August 12th, 2008

I had a problem with my <h1> tag running through an object that was floated to the right in the same container and this particular <h1> had a border. No matter what I did to the float, certain objects never physically recognised it and ran through it or dropped down.

The solution I have found for this problem is simply add overflow: auto to the offending tag.

For example: <h1 style=”overflow:auto;”>Header</h1>