Posted By

jitendramr on 10/20/07


Tagged

css web


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

basicmagic
arcturus


css run-time expression


 / Published in: CSS
 

URL:

Writing expressions in CSS, used to make decisions at run-time.

  1. <!--[if lte IE 6]>
  2. <style type="text/css" media="screen">
  3. .wrap,
  4. .searchpanel,
  5. .messages,
  6. .constrain,
  7. .footer div {
  8. width: expression(document.body.clientWidth > 1000 ? "1000px" : document.body.clientWidth < 912 ? "765px" : "98%" );
  9. }
  10. </style>
  11. <![endif]-->

Report this snippet  

You need to login to post a comment.