471,618 Members | 1,070 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,618 software developers and data experts.

Dynamically resize divs.....

Hi Everyone!

I am trying to resize a div based on screen size. I am using this

Expand|Select|Wrap|Line Numbers
  1. .Menu {
  2.     position:absolute;
  3.     background-color: #FFD600;
  4.     float:left;
  5.     top:0px;
  6.     left:0px;
  7.     height:100px;
  8.     width:100%;
  9.     width: expression(document.compatMode=='CSS1Compat'? (document.Menu.offsetWidth-81)+'px' : body.(offsetWidth-81)+'px');
  10. }
and it works fine in IE, but FF it covers up the div next to it....

Any ideas on this?

Oct 31 '07 #1
1 1612
7,435 Expert 4TB
'expression' is non-standard and only works in IE and no other browser.
Oct 31 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

27 posts views Thread by Nicholas Couch | last post: by
reply views Thread by Rod Billett | last post: by
6 posts views Thread by JezB | last post: by
2 posts views Thread by daveyand | last post: by
1 post views Thread by Starance | last post: by
1 post views Thread by XIAOLAOHU | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.