View Single Post
Old 05-06-2013, 12:09 AM   #1
rhino79
Member
rhino79 can extract oil from cheeserhino79 can extract oil from cheeserhino79 can extract oil from cheeserhino79 can extract oil from cheeserhino79 can extract oil from cheeserhino79 can extract oil from cheeserhino79 can extract oil from cheeserhino79 can extract oil from cheeserhino79 can extract oil from cheese
 
Posts: 18
Karma: 1210
Join Date: Apr 2013
Device: Nexus 7
Question: paragraph spacing and CSS styles

Let's say I have a block quote with three paragraphs. The desired result would have a bit of space above the first paragraph and a bit of space after the last paragraph, and the entire block will be indented right.

My question is this: what is the standard way of achieving this... styling each paragraph or wrapping the paragraphs in a div and styling the div? With paragraphs, its necessary to have a style for the first paragraph (space above), the middle (no spacing) and the last paragraph (space below). This is rather tedious. The alternative would be to place the paragraphs in a div and style the div with space on top and bottom.

What's the "correct" way to do this?
rhino79 is offline   Reply With Quote