1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Wordpress Theme CSS Problem

Discussion in 'CSS' started by whirlybird20, Sep 19, 2008.

  1. #1
    Hi,

    I am not very good with css, but am trying to make a wordpress theme.

    Does anyone know how I can eliminate some of the white space between the header and the start of the content?

    http://joeldrapper.com?theme=darknight

    Thanks for your help!

    Joel
     
    whirlybird20, Sep 19, 2008 IP
  2. StrangeLife

    StrangeLife Well-Known Member

    Messages:
    269
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Hi Joel!

    You can set your "h2" tags with a smaller margin in your css file.
    You currently have the code..

    h2 {
    	margin: 30px 0 0;
    	}
    Code (markup):
    Change the margin to a smaller size..

    h2 {
    	margin: 10px 0 0;
    	}
    Code (markup):
    For example. This will remove some white under the header..
    You could alternatively make the header smaller or even the padding of the sidebar to remove some white.

    Hope this helps.
    Matt
     
    StrangeLife, Sep 19, 2008 IP
    whirlybird20 likes this.
  3. whirlybird20

    whirlybird20 Guest

    Messages:
    462
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks StrangeLife!
     
    whirlybird20, Sep 19, 2008 IP
  4. whirlybird20

    whirlybird20 Guest

    Messages:
    462
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    whirlybird20, Sep 20, 2008 IP
  5. whirlybird20

    whirlybird20 Guest

    Messages:
    462
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I solved it! It might not be the best way to do it, but I just added a class the the h2 on the single-post page, then made h2s with that class have a top margin of 30.
     
    whirlybird20, Sep 20, 2008 IP