I really like setting the parent element to overflow:hidden or auto. That way there is no clearing, and it works all the way down to IE6 with no hacks. The rule of thumb is: whenever you have floated elements - set the parent to have overflow.
Can you help me with EI 8 and FF3.5 though? I did a sample and the background color is barely a small sliver at the top of the div id box. Why is this and how do I fix it? Looks great in FF2 and IE 7 though.
excellent css wisdom and instruction. I did find it hard to listen with the loud clicking of the mouse and found it irritating. sorry, but thought you might like to know.
Thank you. ^__^
CarolCarolWu 5 days ago
I really like setting the parent element to overflow:hidden or auto. That way there is no clearing, and it works all the way down to IE6 with no hacks. The rule of thumb is: whenever you have floated elements - set the parent to have overflow.
optikalefxx 3 months ago
@ehsanul Thank you kind sir! I appreciate the time and helpful suggestion. You were spot on as it worked like a charm :^)
r32adt3db 2 years ago
Unless you still care about supporting IE 6 (and you shouldn't generally), you can just take out the _height property, and it should be fine.
ehsanul 2 years ago
Great tutorial! Thanks!!!
Can you help me with EI 8 and FF3.5 though? I did a sample and the background color is barely a small sliver at the top of the div id box. Why is this and how do I fix it? Looks great in FF2 and IE 7 though.
r32adt3db 2 years ago
and why does it sound like your mouse pad is a balloon?
matstars 2 years ago
Why is your mouse so damn loud?
matstars 2 years ago
When did you use the 'after' id ?
Didn't see where you inserted it
wbmkk 2 years ago
excellent css wisdom and instruction. I did find it hard to listen with the loud clicking of the mouse and found it irritating. sorry, but thought you might like to know.
vintageozarks 2 years ago
Great tutorial, but he needs to get a headset microphone so that you can hear him speaking rather than the typing and clicking of the mouse.
SwitchRich 2 years ago