Fixing Internet Explorer
Saturday, June 24th, 2006 | Life
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.
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.