
Originally Posted by
Wedgy
< br clear="all" >
The clear attribute has been deprecated in favour of the clear CSS property, which offers more flexibility anyway. In that case, the value is both, not all. However, as the OP suspects, this isn't a float problem at all.
I have used
position: absolute; Left: 100px; Top: 20px; (a lot!).
Absolute positioning should be quite infrequently used. It can easily lead to fragile layouts that break horribly at larger font sizes.
You can use percentages here (Left: 20%; Top: 50% ) etc. ,but you have to check what happens in both browsers. I found firefox misbehaves a lot!
Compared to what? IE? In almost every instance, you'll find that it's the other way around. IE might be doing what you want, but not what it should.
To the OP: Your problem here is that you've set an explicit height. As the overflow property is set to visible (the default), the larger content spills out of the container because you won't let it expand. IE's implementation of the height property is broken. It acts like the min-height property, which is what you should be using.
Unfortunately, IE's poor CSS support means that it doesn't support min-height except through it's height bug, so a hack is necessary. You can use any 'show only to IE' method you like.
Code:
.indexBody {
min-height: 140px;
}
/* Show only to IE: */
* html .indexBody {
height: 140px;
}
Mike
Bookmarks