I frantically traced my way through the final leg of the site I am creating, and I only encounter an odd quirk with Chrome. FF and IE seem to work fine.
I use jQuery to load HTML stubs and in this case a lot of content from an external blog, but when switching from really long pages to really short pages, I get about one mile of unused page, still attached to the end of the document.
Here, the contents of the body of the page where the stubs are loaded is as follows:
<body> <div id="page"> <div id="mainWrapper"> <div id="headerFullWidth"></div> <div id="fixedwidthcontainer"> <div id="header"> <div id="logo"><img src="images/logo.png" height="85px" width="187px"></div> <div id="shoppingcart"></div> </div> <div id="shoppingCartIcon"></div> </div> <div class="contentSpacer"></div> <div id="contentwrapper"> <div id="content"></div> </div> <div class="contentSpacer"></div> <div id="footer"> <div id="footerContent"> <a href="#contactPopupContent" id="contactfooter">Contact Us</a><a href="#privacyPopupContent" id="privacyfooter">Privacy Policy</a><a href="#shippingPopupContent" id="shippingfooter">Shipping & Returns</a> <div id="copyrightfooter">© 2011 Victory Barbers and Brand</div> </div> </div> <div id="fullWidthFooter"></div> </div> </div> </div> </body>
All my downloads are done using jQuery load() , and I had an iteration of a site that didn't have this problem. I switched to a style over 100% width, and this problem arose in the process.
My question is this: is there a way to get the page to double-check its size when switching to another / shorter content?
javascript jquery css google-chrome ajax
ian hoar
source share