max/min-width & max/min-height


/ Published in: CSS
Save to your folder(s)

max/min-width & max/min-height pour IE


Copy this code and paste it in your HTML
  1. /***** this sets the max-width value for all *****/
  2. div#division {
  3. max-width: 777px;
  4. }
  5.  
  6. /***** this sets the max-width value for IE *****/
  7. * html div#division {
  8. width: expression( document.body.clientWidth > 776 ? "777px" : "auto" );
  9. }

URL: http://perishablepress.com/press/2007/01/16/maximum-and-minimum-height-and-width-in-internet-explorer/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.