Creating a Secondary CSS Stylesheet for Internet Explorer

Don’t ask me why, but for some reason one of the biggest headaches in regards to web programming is cross browser compatibility. Who knows what goes on behind the scenes at Microsoft and Mozilla and why they can’t just agree on a certain standard to make it easier for the rest of us to work around their browsers.

I program and design everything on a Mac using Firefox as my testing browser. Some say I’m crazy for working this way but I came in from a design standpoint and Macs are better machines for creativity and design. But now every time I code something I need to make sure it looks good in Explorer 6 & 7, which makes up over 40% of the users in the world (according to these guys).
Here is a small piece of code you can add to your website to create a secondary CSS stylesheet for Explorer so that you can add a few more styles to make sure your site is looking good all over.
Place the following code anywhere between the<head></head> tags.


Don’t forget to change “YOUR-SITE” to your domain, and add a directory location if the stylesheet isn’t in your main directory.
For WordPress users, place this code in your header.php files between the <head></head> tags.


Now all you need to do is create a file called iestyles.css and add the CSS style changes you need to make it all look good in Explorer.

Share this:

Email
Facebook
Twitter
Pinterest
Pocket

Premium Themes for WordPress

Looking for an easy-to-use Premium Theme for WordPress? Check out Themes by bavotasan.com and have your site up and running in no time.

Use this WordPress website builder to build powerful websites in no time for your or your clients.

WordPress Hosting

WP Engine – designed from the ground-up to support and enhance the workflow of web designers.

Bluehost – providing quality web hosting solutions since 1996.

About the author

Picture of Luke Perrie

Luke Perrie