 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
litwits
Joined: 06 Feb 2008 Posts: 2
|
Posted: Wed Feb 06, 2008 8:58 am Remove blank line after <H> and <P> |
|
|
|
| How do you remove the blank line following a header in CSS? In other words, how do you get a paragraph to follow immediately below the header without a black line in between? Likewise, how can one have paragraphs follow one another, as in a book, without a blank line in between each one? |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8428 Location: Castle Pines North, CO USA
|
|
litwits
Joined: 06 Feb 2008 Posts: 2
|
Posted: Wed Feb 06, 2008 11:49 am Margin |
|
|
|
| That worked, thanks, but I'm not sure why. How does the orientation of the margin affect the vertical alignment of the text? |
|
madprof
Joined: 26 Jan 2008 Posts: 98
|
Posted: Wed Feb 06, 2008 3:13 pm |
|
|
|
Browsers automatically apply top/bottom margin to these elements so they are spaced out by default.
I believe you need to watch the padding in Firefox as well, as this has slightly different behaviour to IE. |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8428 Location: Castle Pines North, CO USA
|
|
georgex5
Joined: 30 Jan 2008 Posts: 11
|
Posted: Sat Feb 09, 2008 8:03 am |
|
|
|
I had a similar problem with regular text--an extra line.
I found that adding <br> to the end of the text took care of it. |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|