Is there an easy way to remove the blank line between an h2 header and the content?

Discussion in 'HTML & Website Design' started by RomanticGuy, Mar 8, 2007.

  1. #1
    This code:
    <h2>paragraph title</h2>
    I would like the text to follow on the next line.
    Code (markup):
    Generates this result:

    paragraph title

    I would like the text to follow on the next line.


    This is what I want:

    paragraph title
    I would like the text to follow on the next line.

    Is there a relatively easy way to get the text to follow on the next line after the header?
     
    RomanticGuy, Mar 8, 2007 IP
  2. bacanze

    bacanze Peon

    Messages:
    2,419
    Likes Received:
    127
    Best Answers:
    0
    Trophy Points:
    0
    #2
    p {margin:0; padding:0;}

    atler to your specfications.
     
    bacanze, Mar 9, 2007 IP
    RomanticGuy likes this.
  3. RomanticGuy

    RomanticGuy Active Member

    Messages:
    328
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    75
    #3
    I wasn't quite sure how to implement your suggestion (I needed the baby steps), but I managed to figure it out.

    Here is what I used:

    <style type="text/css">
    h2 {text-align: left; font-size:14; margin:0; padding:0;}
    </style>
    .
    .
    .
    <h2>paragraph title</h2>
    I would like the text to follow on the next line.

    Wasted way too much trying to figure it out myself. Thank you bacanze for your help! :D
     
    RomanticGuy, Mar 9, 2007 IP
  4. bacanze

    bacanze Peon

    Messages:
    2,419
    Likes Received:
    127
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No problem, glad to be of help :)
     
    bacanze, Mar 9, 2007 IP