Forum Moderators: open
Any assistance appreciated. Thank you in advance.
Sincerely,
Daniel
p {
line-height:1.5em;
}
One silly old kludge was to use a transparent gif inline that forced the lines apart (instead of a space, for instance). Another silly old kludge was to superscript a non-breaking space somewhere in the line.
There are some typsetting principles for readability that relate line length to line-height (or, in print terminology, "leading" - rhymes with "sledding"). Most basically, the longer the line, the more you need extra line height for easy reading.
That's one of the reasons I'm very careful with liquid design in a single div layout. When it gets beyond a certain width, it gets difficult for the eye to return to the left margin and find the next line - hence the need for more line-height as the line gets wider. Maybe someday there will be a way to link line-height to line width directly.
Wouldn't that be sweet?
Thank you for the replys. I kjnow nothing about Cascading style sheets and I would rather not add to my learning curve right now so if I may as you a question.
Can I take the recommended action of
"in the style declaration you can use:
p {
line-height:1.5em;
}
and use that without changing the HTML I already have on the site? Or is this a complete change that I will have to learn a whole new way of making a page?
I know that is probably a kind of silly question but in all honesty it's going on 3 am and I have to go to my regular job tomorrow, its a time thing, so if you could please just give me the answer on this one I promise to look up the answer myself on the next one.
Thanks again for your assistance.
Sincerely,
Daniel
<style type="text/css">
<!--
P { line-height : 150%; }
-->
</style>
This means that the text you want to be "space and a half" high in the body of your file will have to be enclosed in <p> tags, like this:
<p>This is the 150% high line of text</p>
But this one is NOT!
If you have additional questions, just sticky me!
Anyway, Daniel said his customer wants "a space and a half between lines", so setting the line-height at 150% makes the paragraph display "exactly" like he wanted.