Fix for Internet Explorer 6 “Drop Float” Bug in Brian Gardner’s “Silhouette” Theme
by Brendon Carr
Korea Law Blog uses an off-the-shelf free template called “Silhouette”, designed for WordPress blogs by Brian Gardner. I’ve adapted my own HTML templates for the content-management system I use and recommend—ExpressionEngine from EllisLab. But some folks in my office told me on Friday there was a problem with the display of the third, right-hand column on their PCs. Because Koreans all—all—use Microsoft Windows and Internet Explorer, and I don’t, this looked to me to be one of Internet Explorer’s many bugs in the display of cascading stylesheets.
For those with the “dropped-column” problem in Internet Explorer 6, be aware that you’re experiencing a known bug in Explorer and others have found the solution. After noticing the problem, I did a search on “IE float bug” yesterday evening and found that this is known as the “drop float” bug. It took all of five minutes on Google to find an example, verify the fix, and update my CSS. The following addition to the base Silhouette CSS fixed it for me:
* html #r_sidebar {
display: inline;
margin-left: -200px;
}
If you add this code above to your stylesheet, your dropped column should be showing in the correct place. Brian, you might think about adding this to the base CSS for Silhouette.
Although I haven’t tested it, comments to this drop-float hack in other forums indicates this will crash IE if you attempt to print the document. This means you ought to put together a print-media CSS stylesheet as well. As for me, I use Safari on Mac (because Macintosh OS X rocks) but we have to admit, IE6 still has a significant market share and we need to take account of its quirks. If there is anyone using this site with IE7, I’d appreciate feedback as to whether or not it does in fact work under that browser too.
Comments
Comments Policy: Comments to Korea Law Blog are moderated. This means abusive, or just plain stupid comments will be deleted. So don't be a jerk. It also means there may be some delay from the time you post a comment to the time it shows up here. If your comment wasn't against the policy, it will show up in a little bit.
Korea Law Blog is brought to you by Brendon Carr, an American lawyer working as a foreign legal consultant for more than 10 years in Seoul. (Brendon is not admitted as an attorney in Korea. But you knew that.)