CSS Style Formating for Mozilla

<style>
  #main {min-width:500px; max-width:750px;}
</style>
<div class="main">
    some content
</div>

in Internet Explorer you should do something like this:

<style>
#main{
width:expression
(document.body.main.style.width
< 501? "500px": "auto"
&&
document.body.main.style.width
> 751? "750px": "auto")}

</style>
<div id="main">
    some content
</div>

Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (1 + 8) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 12.04.2009
Views: 1741
Item date: 24.08.2009
Views: 548
Item date: 13.05.2009
Views: 1575
Item date: 26.09.2009
Views: 1476
Item date: 15.05.2009
Views: 1570
Item date: 23.08.2009
Views: 291
Item date: 15.05.2009
Views: 718
Item date: 22.08.2009
Views: 2081
Item date: 03.01.2009
Views: 1169