/ Published in: CSS

Javascript expression in css to allow for min/max widths. replaces the min-width, max-width that works for IE6.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#content { height: 75px; background-color: #000; color: #fff; width: expression(document.body.clientWidth < 742? "740px" : document.body.clientWidth > 1202? "1200px" : "auto"); min-width: 740px; max-width: 1200px; }
Comments
