Main menu

Skip to primary content
Skip to secondary content
  • Home
  • Downloads
  • Artworks

Archives

Recent Posts

  • Ai texas translation and more wtf
  • Get something in the mail
  • Not dead: Number Five is Alive
  • Ipso facto I passed
  • Argh philosophy
  • Up-grade
  • Beyond thought: liked, but…
  • Programming something…
  • Route 66: Oklahoma to Texas
  • I can has new internets!

Categories

  • Farmland chronicles
  • h00min resources
  • ITainment
  • Japanese Music
  • Japanese TV
  • Johnny's Jimusho
  • Korean music (kpop)
  • Korean TV
  • Music
  • Psychology
  • Solstice Productions
  • Tomohisa Yamashita
  • Webdesign

Recent Comments

  • Feles on Ai texas translation and more wtf
  • SnowMyth on Ai texas translation and more wtf
  • Feles on Get something in the mail
  • Ashtikun on Get something in the mail
  • Feles on Route 66: Kansas & Oklahoma

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:

  1. <!–[if lt IE 6]>
  2.         <link rel="stylesheet" type="text/css" href="assets/css/ie5.css" mce_href="assets/css/ie5.css"></link> < ![endif]–> <!–[if lt IE 7]>
  3.         <link rel="stylesheet" type="text/css" href="assets/css/ie6.css" mce_href="assets/css/ie6.css"></link> < ![endif]–> <!–[if IE 7]>
  4.         <link rel="stylesheet" type="text/css" href="assets/css/ie7.css" mce_href="assets/css/ie7.css"></link> < ![endif]–>

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.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

: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:

RSS Recent tracks

  • Strapping Young Lad – All Hail the New Flesh
  • Strapping Young Lad – Velvet Kevorkian
  • "Weird Al" Yankovic – Men In Brown (UPS PARODY)
  • Avantasia – Neverland
  • Strapping Young Lad – Happy Camper
  

© 2011/ 2012 - Code Silence