View Single Post
Old 07-21-2013, 05:39 PM   #186
marcopivetta
Junior Member
marcopivetta began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2013
Device: kindle
Thumbs up [solved] css - line spacing - line height

I made adjustments in the color and the background (white is so hard for my eyes), but the program does not allow to adjust the line spaces.

I tryed to follow these instructions.

Quote:
Originally Posted by Ralob View Post
My personal CSS style is extremely basic, but it does exactly what I want- proper indentation for all paragraphs, adequate spacing between lines, background color that is easy on the eyes, and centered headings. Very basic but it does its job.

body {color:rgb(0,0,0);
background-color:rgb(174,174,174);
text-align:justify;
line-spacing:1.8;
margin-top:0px;
margin-bottom:4px;
margin-right:50px;
margin-left:50px;
text-indent:3em;}
h1, h2, h3, h4, h5, h6
{color:black;
text-align:center;
font-style:italic;
font-weight:bold;}
But it didn't work regarding to the spaces between lines .

I found a solution and want to share with you.

There is no line-spacing in css. Instead there is line-height.

So, I just added this line in Preferences > User Stylesheet

Code:
body {
line-height:125%;
}
And it worked like a charm .

Congratulations Kovid Goyal. This is a great software!
marcopivetta is offline   Reply With Quote