Discussion Locked

The Way of the Exploding Web-Browser

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
blog root

9 replies

by ni2sml

The latest IE wierdness to send me over to the nearest wall, needing to beat my head off it in frustration, seems to be related to it's handling of explicitly defined height: auto for an image.

I had a CSS property looking like this:


.large img {
width: 18.75em;
height: auto;
}

On proper standards-compliant browsers like Firefox this looked great, and of course was elastic - changing size with all the other em-sized stuff on the page. The height was figured out automatically (not all the pictures this is used on are the same aspect, so I couldn't hard-code the height) and all was well with the world.

Until we realised the images were getting squished to the wrong height on IE6...at least until you browsed to another page then used BACK to return to the messed up image, where it would magically display correctly.

Turned out removing the height property entirely fixed the problem in IE. I guess implicit auto height is != explicit auto height in the warped world of IE CSS layout. Go figure.

by ni2sml

Wow, only my second post and it's another IE gripe...maybe I should rename the blog to something like "The I ****ing HATE Internet Explorer Blog" ;-)

Anyway, our site was suffering the IE 3px gap layout problem, which in itself is mildly annoying, but for some reason was also causing certain elements to be forced down below the end of the navigation, leaving a big whitespace in the middle of the content. My fix was to float the content using the * html hack (YAY! Relying on a bug to fix a bug. Way to go, IE!) which has pretty much the same effect as setting height: 1% (forces IE to use the float model, by means of ANOTHER bug).

We had a nice, prominent, graphical button showcasing a major feature of our site, right in the middle of the home page, which would cause the entire floating content to be thrown down below the navigation. Ugh.

More research, grey hairs, and the discovery of the IE/Win Expanding Box Bug, the cause of our problem.

So far I can find only two solutions:
  • Forcing the page width. NO. NO, and NO. Absolutely not. The site is meant to be fluid, not constrained to some stupid pixel limit.
  • Reducing the width of the image. This is the one I went with (I think it looks better that way anyway).

There is probably a perfectly good workaround which would have helped, but I have other things to do besides fighting IE all day over one little thing. Life's too short.

by ni2sml

While CSS bug hunting earlier I stumble upon this post about the * html hack maybe being broken in IE7.

Now, I have very few IE hacks in my code, but the few that are there are of the * html variety. Many web developers are going to be less fortunate, I'm sure.

The paranoid, black-helicopter fearing, open-source zealot in me suggests this must be their attempt, once again, to make us all forget there are other browsers out there and code only for their users. Sorry, ain't gonna happen.

If it wasn't a commercial site I'd make it deliberately broken in IE, just to make a statement.

Just as well there are conditional comments, maybe it's time to plan ahead before the site gets any bigger...unless of course Microsoft plan on breaking that, too.

by geekster

Instead of making it broken in IE, why not simply pop up a message that advises users that IE is likely to be less secure than, say, Opera or Firefox?  That way, you don't chase off potential business, but provide a service by reminding users of the security holes in IE.

by ni2sml

Maybe it's just the time of morning (not a morning person) but it seems like changing the font sizes in IE (via View>Text Size) doesn't have any effect on form fields.

Cute.

by ni2sml

The boundaries of science and progress just keep being pushed further. The best ever flourescent green pigs have been bred!

Apparently there are useful medical research applications for this. Hey, if it eventually helps find a cure for cancer they can make them bright purple with orange stripes for all I care.

Equally practical, and something I'm sure they didn't consider, is the market for St Patricks' Day specialities. Imagine having a side of glowing green ham with your green Guinness...

OK...maybe not.

by ni2sml

I've moved the "Cyan Screen of Discomfort" blog over to my own domain name, it can be found at paulglover.net/cyanscreen now.

Fixing the theming is fairly high on the priority list, but for now it's there and it works. Probably. ;-)

This discussion is closed to new replies.