Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    2
    Member #
    36747

    Space underneath Divs

    I am getting space below my nav div. I have added 0 padding and margins to all divs in my css(which are now removed) and I still get this space. I have double checked my html and css and even validated it, but I am still getting this space. I am posting my css and html on here. Please help!css.txthtml.txt

  2.  

  3. #2
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    I know it is not the norm to post links as such a new member, but I think you will get more help if you post a link to your site. In this case it is permitted since the link is being directly requested.
    In order to help you, we need to see the code, and I don't think anyone wants to download a file from someone they don't know.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  4. #3
    Junior Member
    Join Date
    Jul 2013
    Posts
    2
    Member #
    36747
    Here is my code.

    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
    <link rel="stylesheet" type="text/css" href="fiore.css" >
    <title>NickelBack</title>
    </head>

    <body>
    <div id="body">
    <div id="logo">
    <ul>
    <li class="mainNav"> home</li>
    <li>here</li>
    <li>there</li>
    <li>anywhere</li>

    </ul>


    </div>

    <div id="photoCollage">
    <ul>
    <li class="mainNav"> home</li>
    <li>here</li>
    <li>there</li>
    <li>anywhere</li>

    </ul>
    </div>

    <div id="menu">
    <ul>
    <li class="mainNav"> home</li>
    <li>here</li>
    <li>there</li>
    <li>anywhere</li>

    </ul>
    </div>

    <div id="news">
    <ul>
    <li class="mainNav"> home</li>
    <li>here</li>
    <li>there</li>
    <li>anywhere</li>

    </ul>
    </div>

    <div id="content">
    <ul>
    <li class="mainNav"> home</li>
    <li>here</li>
    <li>there</li>
    <li>anywhere</li>

    </ul>


    </div>

    <div id="footer">
    <ul>
    <li class="mainNav"> home</li>
    <li>here</li>
    <li>there</li>
    <li>anywhere</li>

    </ul>
    </div>
    </div>
    </body>

    </html>




    body{
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    background-color: yellow;
    }

    #logo
    {

    width: 20%;
    background-color: aqua;
    float:left;
    }
    #menu
    { width: 100%;
    clear: left;
    background-color:gray;
    }
    #news
    { width: 20%;
    background-color:green;
    float: left;
    }
    #photoCollage
    {
    float: left;

    width: 80%;
    background-color:blue;
    }
    #content
    {
    float: left;

    width: 80%;
    background-color:fuchsia;
    }
    #footer
    { width: 100%;
    clear: both;

    background-color:gray;
    }
    Last edited by Annie Widdifield; Jul 12th, 2013 at 12:12 PM.

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Again, you're going to need to post an actual link to the page so we can see it; otherwise, all you're going to get are guesses.

    You're also going to need to explain what you mean by a gap in your "nav" div better. I don't see a nav div in the code you've posted. I only see some list items with "mainNav" as classes.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:25 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com