Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Footer Fix

The simple fix for the clearing footer problem in IE/Win is the “Holly Hack,” named for Holly Bergevin, who discovered it. Entire books could be filled with the explanations of CSS hacks and their related fixes, so quite simply, I’ll just state that the following hack fixes the footer problem, where IE/Win needs the clearing element to have a specified dimension. The dimension is irrelevant, since IE/Win will always (wrongly) expand elements to fit whatever is inside them anyway, so we use height: 1%; to make IE/Win play nicely with our footer. We also want to hide this rule from IE5/Mac, because it implements the height value properly, where IE/Win does not.

#footer { height: 1%; }
					


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial