Thirkill Client Login

Give IE it’s own Stylesheet

Posted on 15th May, 2009 in Thoughts, apple with 51 views
This is a very simple technique that most web designers need to be able to use, Internet Explorer causes headaches with web designers all around the world, when I see people having issues I feel their pain!

This is a very simple technique that most web designers need to be able to use, Internet Explorer causes headaches with web designers all around the world, when I see people having issues I feel their pain!

On this website if you are viewing in Firefox, Safari basically anything thats not Internet Explorer you will see a transparent navigation and transparent content. If viewing in IE you will notice its just a solid black.

I was having an issue where in IE the transparent code I was using would cause no colour to be shown, just a big fully transparent div. To fix this problem I needed to tell the browser that if the users browser is IE then give the div tag’s a background colour of 000.

This is the code I used:


As you can see that says to the browser if the user is using IE add background-colour to #main and #welcome. Leave a comment if you found this helpful.

2010 Easter Holiday 59192630 2010 Easter Holiday 24491208 2010 Easter Holiday 88885888 2010 Easter Holiday 85286136 2010 Easter Holiday 86649673 2010 Easter Holiday 41654119 2010 Easter Holiday 48174467 2010 Easter Holiday 56224637 2010 Easter Holiday 14833512