elementalgrace Posted November 15, 2006 Share Posted November 15, 2006 Is there any way to set a width for an element, but specifically set it to be a different width if you're looking at it in IE6?I have a problem that I'm trying to fix for a friend as he was given some non standards compliant code. I now have it working fine for Firefox, IE7, Opera and Netscape but this one page won't work for IE6. It will work for IE6 if I change the width but then it knocks the background out in Firefox, IE7, Opera and Netscape.The site is developed in asp.net if that helps Link to comment Share on other sites More sharing options...
aspnetguy Posted November 15, 2006 Share Posted November 15, 2006 you can do this .className{ width: 500px; -width:520px; /*only IE sees this*/} or <style>.className{width:500px}</style><!--[if IE]><style>.className{width:520px}</style><![endif]--> Link to comment Share on other sites More sharing options...
jesh Posted November 15, 2006 Share Posted November 15, 2006 .className{ width: 500px; -width:520px; /*only IE sees this*/} OK, maybe you can explain this to me or point me to a link that explains it. I've started to notice things like -width and _margin lately. What's going on there? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now