homepage Welcome to WebmasterWorld Guest from 54.227.215.140
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
Paragraphs and CSS
Or setting margins in Points or Pixels
Alan Kellogg



 
Msg#: 4646212 posted 3:13 am on Feb 18, 2014 (gmt 0)

Is there code for that?

 

lucy24

WebmasterWorld Senior Member lucy24 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



 
Msg#: 4646212 posted 4:24 am on Feb 18, 2014 (gmt 0)

Please no points or pixels. Ems and percentages.

Are you asking about text-indent, vertical margins, or both?

DrDoc

WebmasterWorld Senior Member drdoc us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4646212 posted 9:17 pm on Feb 19, 2014 (gmt 0)

Welcome to WebmasterWorld, Alan!

In general, when dealing with paragraphs and similar blocks of text, you have a couple different properties that apply:

margin -- top, right, bottom, left ... If you want some spacing between paragraphs, you can simply specify something like margin: 0 0 15px 0

line-height -- similar to line spacing in word processors. I tend to favor a setting of line-height: 1.5

text-indent -- when dealing with blocks of text, it's generally nice to indent the first line of each paragraph a little. Something like text-indent: 3em does the trick

Not entirely sure if that's all you were asking for, or if there's something else you were wondering as well.

tangor

WebmasterWorld Senior Member tangor us a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



 
Msg#: 4646212 posted 1:40 am on Feb 20, 2014 (gmt 0)

Whatever math you choose to use (pixel, point, em, percent, etc.) BE CONSISTENT. Nothing will mess with your presentation more than having the "wrong math" at the wrong place. Agree with lucy24, em and percent is a tad more universal and better for fluid layout.

Now, what do you want your paragraphs to look like?

Alan Kellogg



 
Msg#: 4646212 posted 3:48 am on Feb 20, 2014 (gmt 0)

Found the code I needed, and did it in points. But I was consistent.

Your help is appreciated, that I will say.

And Tangor: I want my paragraphs to look like paragraphs in a professionally published book or magazine.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved