Having Issues With Css Overflow:hidden
I have some script which seems to work perfectly functionality wise: HTML:
Solution 2:
Add clear:both
to footer class:
.footer
{
background:#AAAAAA;
clear:both;
}
It clears formatting added due to float:left or float:right to previous tags.
Solution 3:
In terms of mark up - especially as you develop this further - your footer might not immediately follow your navigation. So put a clearfix on the navigation instead. Don't rely on the footer (or any other element) which may or may not be present in your final build to do the dirty work of clearing your floats.
EDIT: Seems that Rohit Azad and myself came up with the same answer at similar times. Follow his advice.
Post a Comment for "Having Issues With Css Overflow:hidden"