Welcome to WebmasterWorld Guest from 220.127.116.11 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
Paragraphs and CSS Or setting margins in Points or Pixels Alan Kellogg Is there code for that?
Please no points or pixels. Ems and percentages. Are you asking about text-indent, vertical margins, or both? DrDoc
Welcome to WebmasterWorld, Alan! In general, when dealing with paragraphs and similar blocks of text, you have a couple different properties that apply:
-- top, right, bottom, left ... If you want some spacing between paragraphs, you can simply specify something like
margin: 0 0 15px 0
-- similar to line spacing in word processors. I tend to favor a setting of
-- when dealing with blocks of text, it's generally nice to indent the first line of each paragraph a little. Something like
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
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
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.