Skip to main content
Participant
August 15, 2010
Question

How to adjust line spacing

  • August 15, 2010
  • 2 replies
  • 26060 views

Can you adjust the line spacing in Dreamweaver or does it have to be done by code? And how so?

    This topic has been closed for replies.

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    August 15, 2010

    Line-spacing on what?  Headings, Lists, Paragraphs...?  With CSS rules, you can define line spacing for all selectors in the body rules.  Or you can specify different line-heights on individual selectors.

    CSS global rule (applied to all selectors):

    body {line-height: 100%}

    CSS more specific rule (applied only to named selectors):

    #header p {

    line-height: 2;

    }


    #footer p {

    line-height: 1.5;

    }

    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

    Nancy O'Shea— Product User & Community Expert
    BenPleysier
    Community Expert
    Community Expert
    August 15, 2010

    MisoMush wrote:

    Can you adjust the line spacing in Dreamweaver or does it have to be done by code? And how so?

    Assuming that you want to adjust the line spacing in your document rather than in DW, the answer is that this need to be done using style rules. as per following example.

    <style>

    p, h3 {


        line-height: 1.5em;
    }

    </style>

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!