Skip to main content
Participant
June 1, 2008
Question

Line Spacing

  • June 1, 2008
  • 1 reply
  • 422 views
Using dreamweaver, how do i decrease the space between lines?

Iive tried highlighting the text and going to Insert/html/special characters/non line breaking space, but it doesn't seem to have an affect.

Thanks for your help
This topic has been closed for replies.

1 reply

Inspiring
June 1, 2008
Use CSS -

To change the space between lines within a single paragraph of text, specify
the line-height style, e.g.,
(inline CSS used for clarity)

<p style="line-height:0.8;">Now is the time for all good men to come to the
aid of the party. Now is the time for all good men to come to the aid of the
party. Now is the time for all good men to come to the aid of the party. Now
is the time for all good men to come to the aid of the party. Now is the
time for all good men to come to the aid of the party. Now is the time for
all good men to come to the aid of the party. Now is the time for all good
men to come to the aid of the party.</p>
(these lines will be 80% as far apart as would the lines in a non-styled
paragraph)

To change the space between adjacent paragraphs of text, specify the
top/bottom margins of the <p> tag/

<p style="margin-bottom:.5em;">Now is the time for all good men to come to
the aid of the party. Now is the time for all good men to come to the aid of
the party. Now is the time for all good men to come to the aid of the party.
Now is the time for all good men to come to the aid of the party. Now is the
time for all good men to come to the aid of the party. Now is the time for
all good men to come to the aid of the party. Now is the time for all good
men to come to the aid of the party.</p>
<p style="margin-top:.5em;">Now is the time for all good men to come to the
aid of the party. Now is the time for all good men to come to the aid of the
party. Now is the time for all good men to come to the aid of the party. Now
is the time for all good men to come to the aid of the party. Now is the
time for all good men to come to the aid of the party. Now is the time for
all good men to come to the aid of the party. Now is the time for all good
men to come to the aid of the party.</p>

These paragraphs, whose lines will be the default distance apart, will be
only half as far apart as unstyled paragraphs.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"shane2008" <webforumsuser@macromedia.com> wrote in message
news:g1uasi$drj$1@forums.macromedia.com...
> Using dreamweaver, how do i decrease the space between lines?
>
> Iive tried highlighting the text and going to Insert/html/special
> characters/non line breaking space, but it doesn't seem to have an affect.
>
> Thanks for your help
>