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.

Rookie CSS Question

Discussion in 'CSS' started by travoholic, Nov 16, 2005.

  1. #1
    Hey guys,

    Ok the one main this that has always given me headaches with CSS and <h1> and <p> tags (or whatever they're called) is that they always put an extra line break in each time I use them. So when I want to use H1 for my title then a P to define my paragraph, a blank line will be instered. I don't want it there.
    SEMrush
    Is there a way around this? Am I making sense?

    Cheers,
    Kirsty
     
    travoholic, Nov 16, 2005 IP
    SEMrush
  2. mdvaldosta

    mdvaldosta Peon

    Messages:
    4,079
    Likes Received:
    362
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yea, you can put code in your CSS to define the spacing above and below an H1 (I do it alot), and probably for the P as well. Sorry, don't know what the code is off hand I always look it up on Google and copy it when I need it.
     
    mdvaldosta, Nov 16, 2005 IP
  3. ssk77077

    ssk77077 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try using these to control the vertical space for <H1> and <P>

    margin-top:
    margin-bottom:
     
    ssk77077, Nov 16, 2005 IP