4 replies [Last post]
Strider
Offline
newbie
Ontario, Canada, Eh!
Last seen: 17 years 26 weeks ago
Ontario, Canada, Eh!
Joined: 2004-06-04
Posts: 3
Points: 0

I was wondering if there was a way to specify the distance between paragraphs using CSS?

No not "line-height", that sets the spaces between lines... I'm talking about the space between paragraphs.

For example, view this in IE6 and NS7.1: http://www.thestrider.com/

Also, there is a difference in the titleblock height. I've specified a height for that block, but that didn't help... Ideas?

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 day 3 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

Paragraph spacing difference between IE and Netscape...

Hi Strider,
Have you tried adjusting margin.
p{margin:10px;}

Hope that helps

Strider
Offline
newbie
Ontario, Canada, Eh!
Last seen: 17 years 26 weeks ago
Ontario, Canada, Eh!
Joined: 2004-06-04
Posts: 3
Points: 0

Paragraph spacing difference between IE and Netscape...

The margin adjusts the horizontal spacing... I'm looking at the vertical spacing...

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 day 3 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

Paragraph spacing difference between IE and Netscape...

Hi Strider,
Actually margin adjust the space around the four sides of an element.
By default paragraphs have some margin around them so you may not have noticed any change.
You could try margin-top or margin-bottom or set margin to 0 and then add it in again till you get what you are after.

Hope that helps

Strider
Offline
newbie
Ontario, Canada, Eh!
Last seen: 17 years 26 weeks ago
Ontario, Canada, Eh!
Joined: 2004-06-04
Posts: 3
Points: 0

Paragraph spacing difference between IE and Netscape...

*Slaps Head*

Duh, and to think, I'd already applied the same kind of fix to several other elements...