| You are here : : Home > Free Resources > CSS Tutorials > Tips On How To Use CSS With IE |
Free Web Design Resources
Other Web Design Resources
Most of the internet users use IE as their default browsers as it packed with the Windows operating system.
But displaying content on IE using CSS can sometimes be painful.
Here are some useful tips on how to use css with IE.
| Browser Support | » | ![]() |
|||
|---|---|---|---|---|---|
| Language | » | CSS3 & HTML4 | |||
Some common problems caused in IE can be eliminated by:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-transitional.dtd"> 1 2 3 4 5 6 7
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml-transitional.dtd">
<html>
</html>
1 2 3 4 5 6 7
<!--[if (TYPE) IE (VERSION)]> IE Specific code <![endif]-->
1 2 3 4 5
<!--[if IE]> <link rel=stylesheettype=text/csshref=all-version-of-ie.css/> <![endif]-->
1 2 3 4 5
<!--[if !IE]> <link rel="stylesheet" type="text/css" href="all-except-ie.css" /> <![endif]-->
1 2 3 4 5
<!--[if IE 7]> <link rel="stylesheet" type="text/css" href="for-ie-7.css" /> <![endif]-->
1 2 3 4 5
<!--[if gte IE 7]> <link rel="stylesheet" type="text/css" href="gte-ie-7.css" /> <![endif]-->
1 2 3 4 5
<!--[if lt IE 8]> <link rel="stylesheet" type="text/css" href="lt-ie-8.css" /> <![endif]-->
1 2 3
#sample{
filter: progid:DXImageTransform.Microsoft.filtername(sProperties);
}
1 2 3 4
<img src=images/image.jpg
style=filter:progid:DXImageTransform.Microsoft.alpha(opacity=20)
>
| classes | Internet Explorer 5 | Internet Explorer 5.5 | Internet Explorer 6 | Internet Explorer 7 | Internet Explorer 8 | Internet Explorer 9 |
|---|---|---|---|---|---|---|
| :root | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :nth-child(n) | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :nth-last-child(n) | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :nth-of-type(n) | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :nth-last-of-type(n) | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :last-child | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :first-of-type | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :last-of-type | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :only-child | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :only-of-type | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :empty | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :target | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :not(s) | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :enabled | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :disabled | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :checked | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :indeterminate | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :default | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :valid | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :invalid | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :in-range | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :out-of-range | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :required | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :optional | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :read-only | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| :read-write | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Elements | Internet Explorer 5 | Internet Explorer 5.5 | Internet Explorer 6 | Internet Explorer 7 | Internet Explorer 8 | Internet Explorer 9 |
|---|---|---|---|---|---|---|
| ::before | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| ::after | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| ::first-letter | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| ::first-line | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| ::selection | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| ::value | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| ::choices | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| ::repeat-item | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| ::repeat-index | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Properties | Internet Explorer 5 | Internet Explorer 5.5 | Internet Explorer 6 | Internet Explorer 7 | Internet Explorer 8 | Internet Explorer 9 |
|---|---|---|---|---|---|---|
| { color-profile : sProfile } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { rendering-intent : sIntent } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { background : sBackground1, sBackground2, etc. } |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { background-clip : sClip } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { background-origin : sOrigin } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { background-break : sBreak } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { background-size : sSize } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Properties | Internet Explorer 5 | Internet Explorer 5.5 | Internet Explorer 6 | Internet Explorer 7 | Internet Explorer 8 | Internet Explorer 9 |
|---|---|---|---|---|---|---|
| { font-effect : sEffect } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { font-emphasize : sEmphasize } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { font-size-adjust : sSizeAdjust } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { font-smooth : sSmooth } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { font-stretch : sStretch } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { hanging-punctuation : sHangingPunctuation } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { punctuation-trim : sTrim } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { ruby-align : sRubyAlign } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { ruby-overhang : sRubyOverhang } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { ruby-position : sRubyPlacement } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { ruby-span : sRubySpan } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { text-align-last : sAlignLast } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { text-emphasis : sEmphasis } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { text-justify : sJustify } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { text-outline : sOutline } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { text-overflow : sOverflow} | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { text-shadow : sShadow } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { text-wrap : sWrap } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { word-break : sBreak } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { word-wrap : sWrap } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { writing-mode : sFlow } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Properties | Internet Explorer 5 | Internet Explorer 5.5 | Internet Explorer 6 | Internet Explorer 7 | Internet Explorer 8 | Internet Explorer 9 |
|---|---|---|---|---|---|---|
| { border-break : sBreak } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { border-image : sImage } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { border-radius : sRadius } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { box-shadow : sShadow } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Properties | Internet Explorer 5 | Internet Explorer 5.5 | Internet Explorer 6 | Internet Explorer 7 | Internet Explorer 8 | Internet Explorer 9 |
|---|---|---|---|---|---|---|
| { fit : sFit } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { fit-position : sPosition } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { image-orientation : sOrientation } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { page : sPage } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { size : sSize } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Properties | Internet Explorer 5 | Internet Explorer 5.5 | Internet Explorer 6 | Internet Explorer 7 | Internet Explorer 8 | Internet Explorer 9 |
|---|---|---|---|---|---|---|
| { appearance : sAppearance } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { box-sizing : sSizing } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { icon : sIcon } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { nav-down : sNavDown } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { nav-index : sIndex } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { nav-left : sNavLeft } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { nav-right : sNavRight } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { nav-up : sNavUp } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { outline-offset : sOffset } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { outline-radius : sRadius } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| { resize : sResize } | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Internet Explorer does not support any of the CSS3 multi-column layout properties.
Internet Explorer does not support any of the CSS3 speech properties.
Join us on Facebook to keep updated with all the latest tutorials and web design freebies from EntheosWeb!
No portion of these materials may be reproduced in any manner whatsoever, without the express written consent of Entheos. Any unauthorized use, sharing, reproduction or distribution of these materials by any means, electronic, mechanical, or otherwise is strictly prohibited.