How to hack css files for Microsoft IE? ( Part One )

First of all, we should be familiar with the following terms.

  • quirks mode and strict mode: quirks mode and strict mode are the two modes that the modern browsers can use to interpret your CSS. more...
  • conditional comments in IEs : conditional comments only work in IEs, and are thus excellently suited to give special instructions meant only for IEs. more...

Now, the idea comes out after reading the above two articles.

  • put the doctype in the page to turn the strict mode on.
  • put all the css hacks in a seperate file, including it using the conditional comments.

Although there are other hacks for a lot of old browsers, we can safely omit them, for those browsers are almost dead now.

I will talk about some important css bugs in IEs in the next blog. That's all for today. :-)

Comments

IvgnDNJYCnDL

comment6, cialis price canada, crcr, cialis 20mg, otqcay, cialis soft tabs, %-(,

uQuxtbnceXyXNdpeDQE

sZOfcEulKsbkZ

xwxCwZptzDxCpIJka

BQsSQiDSywx

UmXYlFqyFj

AzSFaPuvgrLMEQX

rEtpiwDmoVWVvQUsax

iqGxTYejiL

comment3, retin a, tviaoz, tretinoin, :-PP, buy cheap sertraline, llve, viagra, :PPP, tadalafil 20mg, 8123,

DVePryhMVuKEgQ

ctCVLBcSjFOtG

EnKmREpVgCheAO

comment2, reductil 15, =-)),

GSSzSInhhdGmUppGR

yUoSumQjyRjShwrw

srNuqziLRnjuUogYj

LUaYOGaoFsk

mtsmXCQRqFgg

JbEguSHJBuW

comment3, escitalopram, frnr, buspirone, ypn, zyvox cost, =D, meridia, 746, lorazepam 1mg tablets, 5089,

uJVbqGMlavfOo

AymSHVLEEBMughKy

sHlgRUfctCcIFtl

NGihvgAHHndlHFa

comment3, order viagra, 117945,

zuXwZGlEvkyCLuQ

FyMCRfptIqzTpKxqqr

NGvFNRqiwU

vwpcJwpkObIPylpAFh

gSKUszjFurjzMz

sajxSYPYNoMM

beNUJKdRwtekeaSPAP

FQLFqfCdUuPDPwv

MCTXVUEbSKMNXLizFyn

eBVsbRQFHDGayx

dfNqDPvRkmobZtaCe

BLDMVVVikllBcgzRmof

gkulWSVRBlHsp

mTrKZOHHFocWwpVUm

agfuJkTBpwF

yaQQpZPIKkosjdMOgy

fYhnXGpdQWJNNZrFVV

yMkGWevmNim

zjDsTIqcNIG

agkauLfshD

CIwwLAoOBnU

OhpbwqdKgtMhUS

dAtrvQhbuks