Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    May 2008
    Location
    Michigan
    Posts
    216
    Thanks
    10
    Thanked 1 Time in 1 Post

    Gap at bottom of page

    Here's the page: www.janetmperkins.com/test.php

    At the bottom of the page, there's like 10 pixels of white space. Before I added the Facebook and Twitter logos, there was maybe like 2 or 3 pixels. How can I reduce this because it appears on all the pages? I thought it'd be something as something as simple and putting 0 to the margin attribute, but that didn't work.

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,957
    Thanks
    9
    Thanked 727 Times in 721 Posts
    It's the bottom margin on the p element in #footer.

    Try:

    Code:
    #footer p{margin-bottom:0}

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello nicky,
    I always like to put a reset at the top of the CSS to eliminate problems like this before they happen.
    Yours would look like this -
    Code:
    *{
    margin:0;
    padding:0;
    }
    body {background:#ffffff;
    color:#202020;
    font-family:arial,helvetica,tahoma,times;
    font-size:10pt;
    font-weight:bold;
    line-height:14pt;}
    
    td {text-align:left;}
    Here's a description of that reset - http://perishablepress.com/press/200...-reset-styles/
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #4
    Regular Coder
    Join Date
    May 2008
    Location
    Michigan
    Posts
    216
    Thanks
    10
    Thanked 1 Time in 1 Post
    Thanks guys!

  • #5
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •