We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17058
    • 80 Posts
    Hi overthere,

    got a strange CSS-error. I wanna scroll the content-div(like an iFrame). Using the CSS-code overflow:auto; assigned to this div, nothing will shown in Firefox (IE,Opera works well). It’s pretty strange that i can see it by using the web-developer-toolbar (Diplay Class & ID details) but not without it.
    WTH is wrong? Is thi a FF-Bug.? How to avoid this?

    BTW: If i wanna calculate the height of the content-div depending on the screensize of the user, whats the correct JS?
    For example: Screen is :1600x1200; bannerheight:200px;Footerheight=50px -> height of scrollable div should 950px.

    Thanks in advance.
    le block
      le_block is Member of FUTY | Medienagentur aus Leipzig mit Schwerpunkt Marketing, Branding, Print und Webdesign
      • 19726
      • 239 Posts
      I used the code from this page (http://www.pixeline.be/blog/2005/javascriptcss-calculate-a-height-value-on-resize/) for an autosizing div. I think this is also what you are looking for.
        • 17058
        • 80 Posts
        Thanx Mitch, copy n paste is one of my buddies smiley

        Get the FF-Problem solved.
        I messed up the CSS. Scrambled a little bit with relative and absolute divs.

        le block

          le_block is Member of FUTY | Medienagentur aus Leipzig mit Schwerpunkt Marketing, Branding, Print und Webdesign