Fixing Internet Explorer

The admin panel to one of my new projects uses a menu frame on the left and the main frame on the right similar to how phpBB, vBulletin and probably countless other scripts do it.

The problem was that Internet Explorer would add un-needed hoziontal scroll bars to every page. Well, I thought it was the menu at first, then all pages then I noticed it was only some pages. I tried to work out which pages it was but I couldn’t find anything in the HTML. It turned out to be whether there was vertical scrolling or not. If there was, IE would also add a horizonal scroll bar.

I found the answer in a journal post on No Scope which presented several solutions, I went with the one that forced vertical scroll bars which for some reason makes IE act normal. The only problem was that this forced a vertical scroll bar in even when it wasn’t needed. I could settle with having it forced upon IE users but I didn’t want Firefox users to suffer so I then went in search of the easiest solution to include extra CSS information for IE preferably without using server side.

I found this answer on Arve Bersvendsen‘s website as you can comment code out and put in [if IE] and Internet Explorer will pick it up which is pretty neat.

Timeline

Newsletter

Don't have time to check my blog? Get a weekly email with all the new posts. This is my personal blog, so obviously it is 100% spam free.

Metadata

This entry was posted on Saturday, June 24th, 2006 at 3:21 pm and is filed under Life. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.