Current location: Hot Scripts Forums » General Web Coding » JavaScript » Scripts causing white space at bottom of Chrome / Safari


Scripts causing white space at bottom of Chrome / Safari

Reply
  #1 (permalink)  
Old 05-13-09, 03:17 AM
NBartos NBartos is offline
Newbie Coder
 
Join Date: Apr 2008
Location: Melbourne
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Scripts causing white space at bottom of Chrome / Safari

I have been working on the following page (validated etc) which works fine in Firefox and IE6-7.

Page: www.stevebatzdesign.com.au
CSS: http://www.stevebatzdesign.com.au/css/sbd_style.css

In Chrome & Safari, white space is showing up at the bottom of my page beneath the footer (the box extends full width and to the bottom of the browser). You may need to hit refresh a several times to activate this problem.

If I make the body height say 10000px it goes away, but this also requires an overflow:hidden; on the body to stop the scrolling which isn't really a proper fix.

It seems that if I get rid of all my javascript (jquery etc) it fixes the problem. Of course I need these to run elements of the page. To make matters worse it seems any one of the three javascript files run will cause the problem to occur.

Code:
<script type="text/javascript" src="../scripts/jquery-1.3.2.min.<acronym title="JavaScript"><acronym title="JavaScript"><acronym title="JavaScript">js</acronym></acronym></acronym>"></script>
<script type="text/javascript" src="../scripts/preloadCssImages.<acronym title="JavaScript"><acronym title="JavaScript"><acronym title="JavaScript">js</acronym></acronym></acronym>"></script>
<script type="text/javascript" src="../scripts/stevebatzdesign.<acronym title="JavaScript"><acronym title="JavaScript"><acronym title="JavaScript">js</acronym></acronym></acronym>"></script>

I can't seem to work out exactly whats causing this...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 05-13-09, 11:53 PM
NBartos NBartos is offline
Newbie Coder
 
Join Date: Apr 2008
Location: Melbourne
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
OK, I've fixed this problem.

It appears that applying the background color to the <html> in addition to the <body> tag has fixed this problem.

Just why Safari and Chrome rendered the page differently when running the scripts is beyond me, I can only assume is some sort of bug.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 05-14-09, 05:18 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
Consider validating the CSS and XHTML at w3c.org, if you haven't already.

It makes it more likely the page will display properly in more browsers.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks

Tags
firefox, javascript, safari, webkit, white space


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
space at the bottom of my pages... Justin171985 HTML/XHTML/XML 6 08-10-05 02:08 PM


All times are GMT -5. The time now is 10:43 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.