![]() |
#106 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#107 |
Connoisseur
![]() Posts: 89
Karma: 10
Join Date: Dec 2024
Device: Tolino Shine 5
|
Right, I would have expected a margin to simply work...
|
![]() |
![]() |
Advert | |
|
![]() |
#108 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 316
Karma: 3200000
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
|
I believe this is due to the way the box model works. Margin needs something to push off of, because it's on the outside of the element. Padding is instead a part of the element, so that space is always there. Though why margin would sometimes work for the first element, and sometimes not, I couldn't say. Seems like, in theory, that should never work. I always err on the safe side and assume it won't.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CSS Styling based on class/existing styling | 1ily | Calibre | 8 | 03-17-2025 06:37 AM |
Incorrect styling with specific CSS | quiris | Marvin | 9 | 07-04-2016 01:04 PM |
Missing CSS properties | roger64 | KOReader | 0 | 06-01-2016 06:39 AM |
inspect image properties /replace image | cybmole | Sigil | 6 | 02-05-2013 12:46 PM |
Unsetting properties in CSS | Jellby | ePub | 2 | 06-03-2009 04:29 AM |