Web Analytics Made Easy -
StatCounter Nonexpanding divs in IE? - CodingForum

Announcement

Collapse
No announcement yet.

Nonexpanding divs in IE?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Nonexpanding divs in IE?

    I am trying to make a couple invisible divs (visible, but 0x0 in size). These divs work as canvases for Javascript based vector graphics. Currently, my sizeless, contentless divs appear perfectly (meaning they don't) in Firefox, and graphics are generated all over the screen. But when in IE, if any graphics are generated, the div blows up in to an empty white space.

    Is there anyway to force IE to keep a div size and just overflow?

  • #2
    Try adding overflow:hidden; to those divs.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

    Comment


    • #3
      Originally posted by _Aerospace_Eng_
      Try adding overflow:hidden; to those divs.
      Same result

      Comment


      • #4
        Okay then give us a link to your site rather than keep having us guess at what the problem might be.
        ||||If you are getting paid to do a job, don't ask for help on it!||||

        Comment


        • #5
          Originally posted by _Aerospace_Eng_
          Okay then give us a link to your site rather than keep having us guess at what the problem might be.
          Unfortunatly, it's not a public site, but honestly it is as simple as I mentioned. At the bottom of my page I have this:

          Code:
          <div id="loadWindow" style=""></div>
          <div id="msgBox" style=""></div>
          </BODY>
          Along with that, I am using the wz_jsgraphics library (http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm). Basically I need the divs to be unseen, and just overflow the graphics drawn in the div on to the screen. It works just like that, except when IE generates the graphics it expands the div to a whitespace about 50px tall at the bottom (if I specify the div height and width to 0, IE outputs whitespace of the same size before generating any graphics). Oddly, it does generate the graphics in the correct area on the screen (and outside the div area), but that white space at the bottom messes up my alignment.

          Comment


          • #6
            Fixed it by cheating.

            I just tossed them inside a table I had but not within any td or tr tags just to see what would happen. All the browsers seem like it fine, though it's sloppy as hell.

            Comment

            Working...
            X