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?
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>
Copy link to clipboard
Copied
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