Forum Moderators: coopster

Message Too Old, No Replies

Where is all this whitespace coming from?

         

kenfused

3:41 am on Aug 26, 2011 (gmt 0)

10+ Year Member



On a site I am troubleshooting, I have a ton of white space at the bottom of the site, taking up over 40% of the bottom of the page.
I've looked at it over and over and can't seem to find the cause of it!

Help

The page it at :

< removed >


Thank you!
(am I allowed to post the name of the site here?)

[edited by: tedster at 3:21 pm (utc) on Sep 24, 2011]

lucy24

5:57 am on Aug 26, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



am I allowed to post the name of the site here?

No, so I quickly grabbed the page + css + javascript and will take a look. The problem is in the main css and/or javascript-- that is, the whitespace shows up if I do an html preview with just those files-- so it shouldn't be hard to pinpoint.

lucy24

7:17 am on Aug 26, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Oops, time ran out. See unrelated posting in unrelated forum about extreme subjectivity of computer time. The whitespace is coming from your javascript.

 document.body.appendChild(menu.dropmenu) //move drop down div to end of page
document.body.appendChild(menu.shadow)
menu.dropmenu.setcss=this.setcss
menu.shadow.setcss=this.setcss
menu.shadow.setcss({width: menu.dropmenu.offsetWidth+"px", height:menu.dropmenu.offsetHeight+"px"})


In English: the height of the whitespace is the combined heights of all your dropdown menus. (No, I did not take a ruler and measure.) That's 15 different menus, some of them almost half a screen high by themselves.

What is the appendChild intended to do? I mean, er, other than add a whole bunch of white space ;) I commented-out the two lines and didn't see any difference in behavior.

kenfused

5:05 am on Sep 24, 2011 (gmt 0)

10+ Year Member



THANK YOU SO MUCH!