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.

A Hopefully Basic Question for a CSS Rookie

Discussion in 'CSS' started by travoholic, Jan 25, 2006.

  1. #1
    Hi guys,

    I'm new to CSS and only really know the absolute basics. Can someone walk me through how to reduce the extra line that appears when a new paragraph is started or when a new header tag is used?

    If you head to http://www.workingholidayinfo.com/index.htm you'll see what I mean. I want to reduce the amount of vertical space between the titles in red and the paragraphs below.

    Advice would be good but if someone can tell me exactly what to type into my css file and the html file that'd be even better as I'm thick when it come sto CSS!

    Thanks,
    Kirsty
     
    travoholic, Jan 25, 2006 IP
  2. vectorgraphx

    vectorgraphx Guest

    Messages:
    545
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you're almost there!

    in your stylesheet, change this:

    
    p {}
    
    Code (markup):
    to this:
    
    p {margin-top: 0px;}
    
    Code (markup):
    and then change this:

    
    h2 { font-size: 12pt; color: #993333; font-family: Verdana, Arial; 	}
    
    Code (markup):
    to this:
    
    h2 { font-size: 12pt; color: #993333; font-family: Verdana, Arial; 	margin-bottom: 0px;}
    
    Code (markup):
     
    vectorgraphx, Jan 25, 2006 IP
  3. travoholic

    travoholic Well-Known Member

    Messages:
    299
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #3
    Thanks loads mate!
     
    travoholic, Jan 31, 2006 IP