View Single Post
Old 11-02-2020, 06:50 PM   #305
Uncle Robin
Diligent dilettante
Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.
 
Uncle Robin's Avatar
 
Posts: 3,661
Karma: 52758936
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra Colour
I know basically nothing about CSS etc, but want to change the line spacing used in my Calibre Viewer. I tried copying and pasting one of the templates at the start of this thread
Quote:
body {
color: rgb(255,255,255);
background-color:rgb(0,0,255);
text-align:justify;
line-spacing:1.8;
margin-top:0px;
margin-bottom:4px;
margin-right:50px;
margin-left:50px;
text-indent:2em;
}
h1, h2, h3, h4, h5, h6 {
color:white;
text-align:center;
font-style:italic;
font-weight:bold;
}
but applying it makes no difference to the line spacing. I have experimented with different values for 'line-spacing' but so far 1.7, 2.7 and 3.8 all make exactly no difference to how the lines appear on my viewer. What am I doing wrong?

EDIT
The dangers of unquestioning C&P - it was "line-height", not "line-spacing". Lesson learned!

Last edited by Uncle Robin; 11-02-2020 at 06:57 PM.
Uncle Robin is offline   Reply With Quote