I don't think that will work in the actual css file. You could always make a 2nd css file that held values strictly for IE and then use something like this in your html:
<link rel="stylesheet" type="text/css" href="common.css" /> <!--[if IE ]> <link rel="stylesheet" type="text/css" href="ieOverrides.css" /> <![endif]--> On 10/7/05, Raymond Camden <[EMAIL PROTECTED]> wrote: > Hmm, didn't quite work for me. I'm working in a style sheet, not html, > so I had to mod it a bit. This is what I have now in my css (locally, > not on the blog) > > ..code { > font-family: courier; > font-size: 11px; > border: solid thin #0000cc; > background-color: #ffffcc; > overflow: auto; > max-height: 200px; > width: 490px; > } > <!-- compliance patch for microsoft browsers --> > <!--[if IE ]> > ..code { > height: 200px; > } > <![endif]--> > > > On 10/7/05, Marlon Moyer <[EMAIL PROTECTED]> wrote: > > I've done things like this before: > > > > <style> > > #myDiv { > > height:200px; > > background-color:pink; > > } > > </style> > > <!-- compliance patch for microsoft browsers --> > > <!--[if IE ]> > > <style> > > #myDiv { > > height:300px; > > background-color:blue; > > } > > </style> > > </script> > > <![endif]--> > > > > > > > > On 10/7/05, Raymond Camden <[EMAIL PROTECTED]> wrote: > > > So, Im trying to fix an issue on my blog. Check this out in IE: > > > > > > http://ray.camdenfamily.com/index.cfm/2005/10/7/ColdFusion-Contest-Entry-Examined--Part-3 > > > > > > then compare it in Firefox. Seems like IE doesnt support max-height, > > > so I get a giant table. Now, I -can- use a height attribute, but than > > > it means all my code boxes will be X high. I like max-height since it > > > lets me shrink. Is there anyway I can specify a height _just_ for IE > > > browsers? > > > > > > -- > > > ======================================================================= > > > Raymond Camden, Director of Development for Mindseye, Inc > > > (www.mindseye.com) > > > > > > Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) > > > > > > Email : [EMAIL PROTECTED] > > > Blog : ray.camdenfamily.com > > > Yahoo IM : cfjedimaster > > > > > > "My ally is the Force, and a powerful ally it is." - Yoda > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Protect Your PC from viruses, hackers, spam and more. Buy PC-cillin with Easy Installation & Support http://www.houseoffusion.com/banners/view.cfm?bannerid=61 Message: http://www.houseoffusion.com/lists.cfm/link=i:5:176399 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54