|
|
#106 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,050
Karma: 150250983
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#107 |
|
Zealot
![]() Posts: 101
Karma: 10
Join Date: Dec 2024
Device: Tolino Shine 5
|
Right, I would have expected a margin to simply work...
|
|
|
|
| Advert | |
|
|
|
|
#108 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 324
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.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS Styling based on class/existing styling | 1ily | Calibre | 8 | 03-17-2025 07:37 AM |
| Incorrect styling with specific CSS | quiris | Marvin | 9 | 07-04-2016 02:04 PM |
| Missing CSS properties | roger64 | KOReader | 0 | 06-01-2016 07:39 AM |
| inspect image properties /replace image | cybmole | Sigil | 6 | 02-05-2013 01:46 PM |
| Unsetting properties in CSS | Jellby | ePub | 2 | 06-03-2009 05:29 AM |