+ Reply to Thread
Results 1 to 9 of 9

Thread: Weird White Space

  1. #1
    WhiteOut is offline x10 Sophmore WhiteOut is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    111

    Weird White Space

    Can you guys help me figure out whats causing the white space between my banner and my navigation on http://josephdefazio.com?
    I can't figure it out.

    Thanks

  2. #2
    GrandeMike's Avatar
    GrandeMike is offline x10Hosting Member GrandeMike is an unknown quantity at this point
    Join Date
    Nov 2008
    Location
    Happy Valley, UT, USA
    Posts
    37

    Re: Weird White Space

    Usually an issue with using tables and the way the different browsers want to display them. If you went with a straight CSS format rather than div # -> Table -> div#, it would probably get rid of it. Just from what I've experienced anyway. And when it happens to me, it usually hits IE more than FF.
    The Grande-est of them all!

  3. #3
    VPmase's Avatar
    VPmase is offline x10 Elder VPmase is an unknown quantity at this point
    Join Date
    Nov 2007
    Location
    Dixon, IL, USA
    Posts
    914

    Re: Weird White Space

    Try adding valign="top" to the <td> tags.

  4. #4
    WhiteOut is offline x10 Sophmore WhiteOut is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    111

    Re: Weird White Space

    Quote Originally Posted by VPmase View Post
    Try adding valign="top" to the <td> tags.
    I just tired that and it didn't work =[

  5. #5
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: Weird White Space

    make sure that the image has the css property display:block; or display:inline;. It could also be an issue with a new line after the image is shown...

  6. #6
    ruan800 is offline x10Hosting Member ruan800 is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    10

    Re: Weird White Space

    this is a workaround ,

    this is your NEW navigation div ,

    <div style="background-repeat: repeat-x; background-color: black; background-image: url(../images/navbg.png); margin-top: -6px;"><a class="nav" href="http://forums.x10hosting.com/index.php">Home </a>

    <a class="nav" href="http://forums.x10hosting.com/videos.php">Videos</a>
    <a class="nav" href="http://youtube.com/josephdefazio">Youtube</a>
    <a class="nav" href="http://forums.x10hosting.com/contact.php">Contact</a>
    </div>

    this shifts your banner up against the heading picture, and removes the white space


  7. #7
    WhiteOut is offline x10 Sophmore WhiteOut is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    111

    Re: Weird White Space

    Quote Originally Posted by ruan800 View Post
    this is a workaround ,

    this is your NEW navigation div ,

    <div style="background-repeat: repeat-x; background-color: black; background-image: url(../images/navbg.png); margin-top: -6px;"><a class="nav" href="http://forums.x10hosting.com/index.php">Home </a>

    <a class="nav" href="http://forums.x10hosting.com/videos.php">Videos</a>
    <a class="nav" href="http://youtube.com/josephdefazio">Youtube</a>
    <a class="nav" href="http://forums.x10hosting.com/contact.php">Contact</a>
    </div>

    this shifts your banner up against the heading picture, and removes the white space

    Thanks, but I already knew I could do that. I want to know whats causing it, because I don't see anything in my code that would cause it do that. I don't want to use a work around.

  8. #8
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: Weird White Space

    I don't know if you checked, but I believe that the reason I gave above about it the image display style is probably the problem. I've had issues with images adding a 5px padding on the bottom, and when I made it display:block, it went away.

    PS, my issue was with tables too.



    HTML Code:
    <img src="http://forums.x10hosting.com/images/logo.png" id="logo" alt="Free Video Tutorials">
    Code:
    img#logo {
    display:block;
    }
    The code above should solve your problem ;)
    Last edited by xPlozion; 02-18-2009 at 06:48 PM.

  9. #9
    WhiteOut is offline x10 Sophmore WhiteOut is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    111

    Re: Weird White Space

    Quote Originally Posted by xPlozion View Post
    I don't know if you checked, but I believe that the reason I gave above about it the image display style is probably the problem. I've had issues with images adding a 5px padding on the bottom, and when I made it display:block, it went away.

    PS, my issue was with tables too.



    HTML Code:
    <img src="http://forums.x10hosting.com/images/logo.png" id="logo" alt="Free Video Tutorials">
    Code:
    img#logo {
    display:block;
    }
    The code above should solve your problem ;)
    Thank you very much! That worked perfectly.
    Last edited by WhiteOut; 02-19-2009 at 07:21 AM.

+ Reply to Thread

Similar Threads

  1. Mysterious White Space.
    By MadameSkylark in forum Programming Help
    Replies: 4
    Last Post: 08-16-2008, 10:06 PM
  2. Disk Space Inquiry
    By K.A.B. in forum Free Hosting
    Replies: 1
    Last Post: 07-23-2008, 04:28 PM
  3. [Advertising Event] White Noise
    By icetray in forum Advertising
    Replies: 0
    Last Post: 05-25-2008, 05:31 PM
  4. Need a space for image storage
    By vijaidhas in forum Programming Help
    Replies: 5
    Last Post: 05-22-2008, 05:26 PM
  5. [OFF] Rent out Signature Space!
    By ikki() in forum The Marketplace
    Replies: 3
    Last Post: 10-04-2006, 04:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers