CSS Hacks for IE5/Win

I was somewhat annoyed to discover last Saturday that on certain photo pages, extremely wide pictures would get bumped below the left-floated menu side bar in IE5/Win. Additionally, strange wrapping errors would occur with the main content DIV on text-heavy pages, owing to discrepancies in different browsers’ non-standard interpretations of CSS padding and margin declarations. Applying an extra “float: left” property to the main content DIV would fix its position in IE, but cause the whole DIV to get bumped down in Opera and Mozilla; while removing the float and relying on a “margin-left: ” property for the content DIV would give insufficient margin to the main content in IE, causing unsightly overlaps where it wrapped improperly around the menu sidebar.

The problem with large photos getting bumped down was finally fixed with a “clear: right” property added to the main content DIV. I have no idea why, but it worked.

The wrapping problem was fixed using Tantek’s box model hack, which is not only a useful tool for rendering boxes with IE-specific padding and width, but can also fool IE5/Win into obeying phantom floats, while using more compliant margin properties outside the hack for standards-compatible broswers.

Washington DC Photo Album

I’ve uploaded a new DC album, consisting of mostly hackneyed shots of the standard Washington sights. The unique part is that I took most of those pictures while on rollerblades. You can’t see the rollerblades, but I assure you I was on them as I snapped the photos.

(Reminder to self: NEVER GET PHOTOS DONE AT CVS PHARMACY 1-HOUR DEVELOPING. EVER. AGAIN. Many prints came out dark and discolored, so I had to do some major retouching.)

Super Lucky Elephant Rice

I’m happy to report that Super Lucky Elephant White Jasmine Rice, when cooked, remains soft and fluffy, even after two nights’ refrigeration.