09-24-2024, 06:02 AM | #16 |
Addict
Posts: 373
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
It seems a primary reason for unitless is inheritance behavior, https://developer.mozilla.org/en-US/...SS/line-height
That's not really applicable to my use case here. In any event, the point was using line-height with p wasn't working with any variation of line-height ("I've tried large and small numbers with em, unitless and %, but it always looks the same.") I continue to think different treatment of paragraph and heading tags with respect to whether CSS line height has an affect makes little sense. Last edited by foosion; 09-24-2024 at 06:06 AM. |
09-24-2024, 08:08 AM | #17 |
A Hairy Wizard
Posts: 3,190
Karma: 18843349
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Did you try !important?? Did that have any effect?
|
09-24-2024, 09:50 AM | #18 |
Addict
Posts: 373
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
|
Yesterday, 09:54 AM | #19 |
Addict
Posts: 373
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Line-height also affects div.
Found in an ebook which uses <div class="ct"> for a chapter title. Why don't they just use an h? |
Yesterday, 10:25 AM | #20 | |
A Hairy Wizard
Posts: 3,190
Karma: 18843349
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Some software was written before people cared about proper semantics. Back then all styling was done in-line. With the advent of css there was a major push to use semantics only in the html file and all styling to be accomplished in the css. Unfortunately, the programmers of those early software programs weren't paid enough to change their paradigm so their software....sucks.... |
|
Today, 08:00 AM | #21 |
Resident Curmudgeon
Posts: 75,955
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Line height issue | Mercador | Kobo Reader | 19 | 07-21-2020 02:32 PM |
CSS line height vs Kobo line spacing slider? | bongoman | Kobo Reader | 2 | 07-12-2020 01:25 PM |
line height | Rellwood | Conversion | 3 | 04-07-2018 04:34 AM |
Aura H2O Line height setting is ignored | kAlvaro | Kobo Reader | 6 | 08-09-2016 07:59 AM |
Line spacing confusion | Wrongway | Kobo Reader | 3 | 04-05-2014 07:23 AM |