|
Posted by Jonathan N. Little on 05/21/06 19:09
pecan wrote:
> Jonathan N. Little wrote:
>> pecan wrote:
>>
>>> Is there anything wrong with using <BR>? I use it a lot, since it
>>> gives a
>>> different spacing to the </P><P>.
>>
>> If they are separate paragraphs you should use <p>...</p><p>...</p>.
>> If you want to adjust the space between paragraphs then you should
>> adjust the margins via CSS:
>>
>> P { margin: .25em; }
>>
>> P { margin: 0 1em; }
>>
>
> They are separate paragraphs mostly, but sometimes I just want a
> sentence on a new line. The spacing I'm talking about isn't the margin,
> it's the line spacing.
Well if they are separate paragraphs then as stated you should do as
above use <p>...</p><p>...</p>. If you do not want to compress all your
paragraphs then create a class
..compressed { margin: 0 1em; }
<p>Regular paragraph...</p>
<p class="compressed">Compressed spacing paragraph...</p>
<p class="compressed">Compressed spacing paragraph...</p>
....
If you just need to for a new line for a specific sentence the by all
means use a BR
<p>Regular paragraph...<br>but now on a new line</p>
If you need to separate a part of a paragraph with a special treatment
sort of like an inset then enclose in DIV seems to make sense to me.
..example { margin: 0 5em; color: red; }
<p>
Some technical treatise .... for example:
<div class="example">Your example...</div>
continuing rambling discourse ...
</p>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|