Forums

CSS

This topic is locked

CSS & Making IE Comply!

Posted 04 Mar 2005 16:34:05
1
has voted
04 Mar 2005 16:34:05 Matt Bailey posted:
I noticed this forum was all lonely so I thought I'd make a contribution.

Have you ever been frustrated having to put hacks throughout your CSS to make it work properly in IE? If you have then I'd like to recommend someting called IE7 (or possibly soon to be called IE8 when the real IE7 comes out). The IE 7 script resolves a whole lot of IE CSS problems without you having to hack your code anymore. I've specifically used it for creating pure CSS dropdown menus that work in most browsers. Another common problem it solves is the box model issue, but there's a whole long list of other things it can do. Check out the website for more info (below).

Basically you upload the IE7 folder of scripts to your server and then on each page of your site you put a bit of code that loads the script if the user is using IE. If they're not using IE the browser ignores it and doesn't load the script.

I know purists will hate it and technically it means your site is not standards compliant, but it's saved me so much time. It doesn't seem to place much more load on the server either, which is good. The only problem I had with it was the page would render before IE7 had a chance to load and then IE7 would kick in a split second later, causing elements on the page to 'jump' slightly as adjustments were made. It was solved by forcing the browser to wait until the script had loaded before rendering. If anyone's interested in how to do it let me know - it's a simple one line of code.

To find out more about IE7 go here dean.edwards.name/IE7/. I hope people find it useful.

___________________________________
* Sorry... how do you do that again?... *

Edited by - matm00 on 04 Mar 2005 16:35:06

Replies

Replied 04 Mar 2005 20:12:44
04 Mar 2005 20:12:44 Chris Charlton replied:
I skimmed the site link, and it sounds definitely cool to add to DMXzones' Links//CSS section - www.dmxzone.com/index.asp?TypeId=6&CatId=768 , please add it for us. <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>

Reply to this topic