Hack Codes For Various Internet Explorer (IE) Version

Posted: May 8, 2011 in CSS, HTML
Tags: ,

When I was new comer of Web World 4 years ago, it’s too much difficult to me to fixing various browsers. I was a problem too for that  because I was self learner. My friend was online and collect some hack code for IE at various time from various blogs at that time.That is very helpful to me and today I am sharing from my collection via this post.
IE-6 ONLY

* html #div  {     margin-top: 30px; }


IE-7 ONLY

*+html #div { margin-top: 30px; }

NON IE-7 ONLY:

#div {    _margin-top: 30px; }


Hide from IE 6 and LOWER:

#div {    margin-top/**/: 30px; } 
html > body #div {       margin-top: 30px; }
 
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s