Conditional Comments for IE





15
Date Submitted Sat. Aug. 5th, 2006 6:22 AM
Revision 1 of 1
Beginner Jo3y
Tags CSS | IE
Comments 2 comments
Not really a hack, but rather a workaround for layout problems with IE.
Conditional

<!--[if IE]>
<style type="text/css">
.yourclass {
width:400px;
}
<![endif]-->
 
<!--[if IE gte 5.5]
(If Internet Explorer greater than or equal to version 5.5.) you can also use lt, lte, gte and ! (for 'not')

Joey White

Comments

Comments Better than CSS Hacks
Wed. Oct. 4th, 2006 9:17 PM    Helper Thomas
Comments other conditions
Thu. Apr. 5th, 2007 7:41 AM    Helper ushi

Voting