co.ador Posted November 11, 2009 Share Posted November 11, 2009 So far I have the hacks for IE5.5, IE6, IE7 but IE8 is bringing some bugs that can't not be fixed with traditional hacks. I have found this IE8 hack but is not working quite allright. I don't know If I am missing the semicolon or where should I put it? idth/*\**/:345\ Well the CSS rules below have some hacks for IE5.5, IE6, IE7 and I have include the new fixed I have found in google for IE8 but is not quite working. Need some suggestions. .segundo1 { float:left; width:354px; width/*\**/:345\ >width:400px; height:240px; margin:1em 0em 0 1em; >margin:1em 0em 0 1em; display:inline; margin-left:2em; margin-right:0; margin-top:1em; margin-bottom:0; >margin-left:2em; >margin-right:0; >margin-top:1em; >margin-bottom:0; } * html .segundo1 { float:left; width:405px; wid\th:400px; height:240px; border-color:#FFFFFF; margin:1em 0em 0 2em; display:inline; margin-left:2em; margin-right:0; margin-top:1em; margin-bottom:0; } Thank you for your Suggestion in your last post they really help... Quote Link to comment Share on other sites More sharing options...
haku Posted November 12, 2009 Share Posted November 12, 2009 My suggestion is to not use hacks. They are exactly that - hacks - and are kind of buggy, because you never know if another browser will react funny to them in the future or not. If you absolutely must have code that is different for IE, then you are better off using conditional comments. Quote Link to comment Share on other sites More sharing options...
co.ador Posted November 12, 2009 Author Share Posted November 12, 2009 i think I should use conditional comments! How do you apply conditional comments instead? Thank you haku Quote Link to comment Share on other sites More sharing options...
haku Posted November 12, 2009 Share Posted November 12, 2009 http://www.elated.com/articles/internet-explorer-conditional-comments/ Quote Link to comment Share on other sites More sharing options...
co.ador Posted November 12, 2009 Author Share Posted November 12, 2009 Haku The conditional comments makes it more organized and more standardized for others to read.. I have a question whenever a make a Conditional comment and the pointer get redirected to that x.css style sheet inside the conditional comment X, will that x.css style sheet include the used of hacks such as ----- * selctor x {}, _selector {}, backslash \ {} or the greater than symbol > for IE5, IE6 and IE7? or the conditional <!--[if IE 5]>the brackets will take care of that? Thank you. Quote Link to comment Share on other sites More sharing options...
haku Posted November 13, 2009 Share Posted November 13, 2009 Only the IE versions targeted by the conditional comment will read the stylesheet inside the conditional comment. So if you only target IE8, then the sheet won't be loaded by other versions of IE. Quote Link to comment Share on other sites More sharing options...
jcombs_31 Posted November 13, 2009 Share Posted November 13, 2009 All those hacks look really sloppy. I'm still trying to figure out why you would want to target IE8? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.