How do I remove spacing between header and body?

Discussion in 'HTML & Website Design' started by tonyfloyd, Apr 8, 2008.

  1. #1
    Hi all....

    Any ideas on how I can remove the white spacing between header and body?

    site is TheDomainingBlog *(dot)* com

    Nothing seems to work....I have tried everything....

    Appreciate any help!

    Thanks
    Tony
     
    tonyfloyd, Apr 8, 2008 IP
  2. camp185

    camp185 Well-Known Member

    Messages:
    1,653
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    180
    #2
    You have defined the height in your css file.

    #header {
    width: 1006px;
    height: 277px; <---------------- I would just get rid of this, maybe add padding:10px
    position: relative;
    }
     
    camp185, Apr 8, 2008 IP
  3. tonyfloyd

    tonyfloyd Well-Known Member

    Messages:
    1,230
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    140
    #3

    ok...actually didn't work....but i did change 277 to 177 and that shrunk the spacing...thanks....

    now...would u know how to get rid of scroll bar at bottom of site??..:)

    thanks
    tony
     
    tonyfloyd, Apr 8, 2008 IP
  4. camp185

    camp185 Well-Known Member

    Messages:
    1,653
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    180
    #4
    I do not have a scrollbar at the bottom of mine, but I have my monitor settings at 1440 pixels. The problem is in the code quoted above. Your site is defined by pixels. It should be designed by percentage. Then it will automatically squish or expand to fit on any size monitor. If you like the 1006 setting, you can still use percentage. All you need to know is what most people use, and that is currently 1024. 1006 is 98% of that so just use 98% instead of 1006px. It will also depend if you have other content that is defining the width though.
     
    camp185, Apr 8, 2008 IP
  5. tonyfloyd

    tonyfloyd Well-Known Member

    Messages:
    1,230
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    140
    #5
    so...do i go and change wherever is says 1006px in css file to 100%?
     
    tonyfloyd, Apr 8, 2008 IP