Mobileread
CSS line height vs Kobo line spacing slider?
#1  bongoman 07-11-2020, 06:19 PM
I’m trying to understand the relationship between line-height as specified in the ebook’s CSS and as set in the Kobo sliders.

If I edit the CSS so that line-height is say, 1.2, does it follow that the Kobo line height slider should be slid all the way to the left so that I am actually seeing line-height at 1.2 on the device?

I’d love to see the line height slider display a numerical value.
Reply 

#2  JSWolf 07-12-2020, 07:13 AM
Quote bongoman
I’m trying to understand the relationship between line-height as specified in the ebook’s CSS and as set in the Kobo sliders.

If I edit the CSS so that line-height is say, 1.2, does it follow that the Kobo line height slider should be slid all the way to the left so that I am actually seeing line-height at 1.2 on the device?

I’d love to see the line height slider display a numerical value.
It doesn't work that way. You should edit the CSS to have no line height for the body text. That way you can use the slider as you want and not be stuck with a fixed value. Different fonts can change the line height. That's why you should use the slider to set the line height to what you want.
Reply 

#3  hobnail 07-12-2020, 01:25 PM
Quote bongoman
If I edit the CSS so that line-height is say, 1.2, does it follow that the Kobo line height slider should be slid all the way to the left so that I am actually seeing line-height at 1.2 on the device?
That seems to be what's happening. I set the line-height to 1.2 when I clean up a book's css and on the Kobo I have the slider at the leftmost spot. If you don't set the line-height in the css then the leftmost spot will use whatever the Kobo's default/built-in css specifies.

Quote
I’d love to see the line height slider display a numerical value.
So would I, but that's how geeks are. At least on the Kobo we have a slider; on the Kindle there are only 3 settings (buttons); small, medium, and large and the small seems to use what's set in the css.
Reply 

Today's Posts | Search this Thread | Login | Register