24 Jul 2006

How to override CSS in Microsoft Internet Explorer

This is the key to make a layout display correctly between various browsers. Usually it’s either one or the other that will show gaps between your div tags (boxes) or other abnormalities. There’s a variety of hacks available to ensure compatibility for the two most used browsers (Mozilla based, MSIE).

Most used by myself:

If you use this piece of code in the head tag of your document you can override any existing style sheet element for Internet Explorer 6 and 7. Many times you will address things such as margins to correct the layout. The numbers are of course up to what you’re designing.

Share on TwitterShare on TumblrSave on Delicious
Leave a reply

Leave a Reply

:grin: :sad: :eek: :confused: :angry: :mad: :P :cry: :evil: :grr: :hoping: :smug: :bawl: :genki: :love: :hearteyes: :huh: :pissedoff: :ill: :mwahaha: :sweatdrop: :kickass: :drool: :wow: :wub: :sleepy: :unsure: :usuck: :victory: :innocent: :yippee: :hoi: :roflmao: :worship: :spank: :puke: :voyeur: :twitch: :fuming: :smokin: :omg: :food: