Dynamically resize divs.....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jfarthing
    New Member
    • Sep 2007
    • 11

    #1

    Dynamically resize divs.....

    Hi Everyone!

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

    Code:
    .Menu {
        position:absolute;
        background-color: #FFD600;
        float:left;
        top:0px;
        left:0px;
        height:100px;
        width:100%;
        width: expression(document.compatMode=='CSS1Compat'? (document.Menu.offsetWidth-81)+'px' : body.(offsetWidth-81)+'px');
    }
    and it works fine in IE, but FF it covers up the div next to it....

    Any ideas on this?

    Thanks,
    Jim
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    'expression' is non-standard and only works in IE and no other browser.

    Comment

    Working...