Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > How to separate paragraphs?

Reply
Thread Tools

How to separate paragraphs?

 
 
Nikolay Kurtov
Guest
Posts: n/a
 
      06-27-2007
Hello.

I want to make a layout for my blog, so, the content of the page is
inside one tag, <div class="post_body">...</div>

I want to have little spaces between lines inside a paragraph and a
BIG space between different paragraphs.( Paragraph is just some
sentances connected semantically, not a HTML tag <p> ). But I don't
know how!!!

Please, help me!!!

 
Reply With Quote
 
 
 
 
rf
Guest
Posts: n/a
 
      06-27-2007

"Nikolay Kurtov" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> Hello.
>
> I want to make a layout for my blog, so, the content of the page is
> inside one tag, <div class="post_body">...</div>


> I want to have little spaces between lines inside a paragraph and a


p {line-height: 2em;} ?

> BIG space between different paragraphs.( Paragraph is just some
> sentances connected semantically, not a HTML tag <p> ). But I don't
> know how!!!


p {margin-bottom: 14em;} ?

--
Richard.


 
Reply With Quote
 
 
 
 
Andy Dingley
Guest
Posts: n/a
 
      06-27-2007
On 27 Jun, 06:30, Nikolay Kurtov <(E-Mail Removed)> wrote:
> I want to have little spaces between lines inside a paragraph and a
> BIG space between different paragraphs.( Paragraph is just some
> sentances connected semantically, not a HTML tag <p> ).


HTML doesn't have a "paragraph separator". Instead it uses "paragraph
containers" (<p> ... </p>). It's important to remember the
difference, because you can't really change this; working "against
HTML" is harder than working with it.

You should use the <p> tags to identify the start of paragraphs in
HTML. That's how it's meant to work, that's how it works best and most
easily. If you have "sentences connected semantically" then that's a
paragraph in HTML and you should mark it up as one. If you _insist_ on
not using <p>, then use <div> (you can nest <div>s)

If you want to understand how margins work in CSS, particularly
"collapsing vertical margins", then read this: http://brainjar.com/css/positioning/

As to your spacing issues, then just the CSS defaults on correct HTML
markup ought to be a good start for you.

If you want to vary line height within a paragraph, use
p { line-height: 1.2; }

Note that there are no dimensions on the 1.2 value! Don't use ems
here. 1.2 is the "typical" default, so make it larger or smaller
according to what you want.

If you want more spacing between paragraphs, set the bottom margin to
be bigger
p { margin-bottom: 2.5em; }
"Collapsing margins" means that you only need to set one margin,
usually the bottom is best. Use em units here.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Separate Tabs, Separate Sessions BigAndy Firefox 0 05-09-2007 09:27 AM
Separate Tabs, Separate Sessions BigAndy Firefox 0 05-09-2007 09:26 AM
Using separate classpaths for separate classes? Frank Fredstone Java 1 06-27-2006 06:46 AM
How to use several separate classes (separate files) to be executed in one class (another file) EvgueniB Java 1 12-15-2003 01:18 AM



Advertisments