min-width/max-width expression


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



Copy this code and paste it in your HTML
  1. #gl-wrapper{
  2. zoom:1;
  3. width:expression((document.compatMode && document.compatMode == 'CSS1Compat') ? (document.documentElement.clientWidth < 950 ? "950px" : (document.documentElement.clientWidth > 1280 ? "1280px" : 'auto')) : (document.body.clientWidth < 950 ? "950px" : (document.body.clientWidth > 1280 ? "1280px" : 'auto')));
  4. }

URL: pokrovskii.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.