Simple css problem - please help

Discussion in 'CSS' started by jasonsc, Mar 26, 2008.

  1. #1
    I have a wordpress template that has white main body that goes all the way to the top of page. I would like to have a 20pix edge on top (background), someting like default wp theme has - you can see one in use at http://www.smartnexus.eu/

    Can someone please help me, what do I need to change to get that edge on top?

    Rep will be given of course
     
    jasonsc, Mar 26, 2008 IP
  2. HDaddy

    HDaddy Active Member

    Messages:
    287
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #2
    try body { margin-top: 20px;}, put it in your css file.
     
    HDaddy, Mar 26, 2008 IP
    jasonsc likes this.
  3. jasonsc

    jasonsc Well-Known Member

    Messages:
    1,696
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    165
    #3
    thank you very much my friend! Rep given!
     
    jasonsc, Mar 26, 2008 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I'd actually use padding: 20px 0 0 0; instead of margin on the body. ;)
     
    Dan Schulz, Mar 29, 2008 IP