|
|
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? |
|
Subject:
Re: css question: how to change paragraph spacing
Answered By: mvguy-ga on 15 Nov 2006 23:05 PST Rated: |
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:
and gave an additional tip of:
$2.00
thanks |
|
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. |
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 Home - Answers FAQ - Terms of Service - Privacy Policy |