Google Answers Logo
View Question
 
Q: css question: how to change paragraph spacing ( Answered 4 out of 5 stars,   1 Comment )
Question  
Subject: css question: how to change paragraph spacing
Category: Computers > Internet
Asked by: bugbear-ga
List Price: $12.00
Posted: 15 Nov 2006 20:44 PST
Expires: 15 Dec 2006 20:44 PST
Question ID: 783141
By default, a p tag inserts some amount of vertical space between
paragraphs. How in css can I increase or decrease this space?  I know
line-height controls leading between individual lines.  What controls
space between paragraphs?
Answer  
Subject: Re: css question: how to change paragraph spacing
Answered By: mvguy-ga on 15 Nov 2006 23:05 PST
Rated:4 out of 5 stars
 
Hi,

You can use margin-top or margin-bottom to adjust the space between
elements, including paragraphs. (You can also use padding-top and
padding-bottom, but then you can't use negative values like you can
when adjusting the margin.)

The amount of space between paragraphs can be adjusted either a fixed
amount (as in pixels) or a percentage of the element size.

An example of a margin adjustment in action can be seen on this page:

Changing the spacing between paragraphs
http://lab.artlung.com/change-space-between-paragraphs/

Examples can also be found on this page:

CSS Margin
http://www.w3schools.com/css/css_margin.asp

More about margins can be found here:

Complete CSS Guide: Margin properties
http://www.westciv.com/style_master/academy/css_tutorial/properties/margin.html

I hope you find this information fully answers your question.

Sincerely,

Mv-guy-ga






Google search used:

css "spacing between paragraphs"
://www.google.com/search?q=css+%22spacing+between+paragraphs%22
bugbear-ga rated this answer:4 out of 5 stars and gave an additional tip of: $2.00
thanks

Comments  
Subject: Re: css question: how to change paragraph spacing
From: mvguy-ga on 25 Nov 2006 19:52 PST
 
Thanks for the positive rating on the tip.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy