• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to adjust line spacing

New Here ,
Aug 14, 2010 Aug 14, 2010

Copy link to clipboard

Copied

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

Views

25.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 14, 2010 Aug 14, 2010

Copy link to clipboard

Copied

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, the only real Dreamweaver alternative.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 15, 2010 Aug 15, 2010

Copy link to clipboard

Copied

LATEST

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 & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines