A question on CSS in Dracula

24 views
Skip to first unread message

Szymon Szott

unread,
11:15 AM (11 hours ago) 11:15 AM
to standar...@googlegroups.com
In Dracula, I noticed that the vertical spacing (margin) for letters or telegrams quoted in diary entries is different for top and bottom. Here's an example from the beginning of Chapter XVII:

obraz.pngThe paragraph beginning with "The Professor..." is styled in local.css with "margin-top: 3em". Is this asymmetry the intended result? I believe the CSS is necessary when separating the main "building blocks" of Dracula (letters, diary entries, etc.) when they follow one after the other. But in this case (a telegram quoted in a diary entry), the extra whitespace feels off (to me).

Szymon

Alex Cabal

unread,
12:11 PM (10 hours ago) 12:11 PM
to standar...@googlegroups.com
No, that's an error. You can open a PR to correct it. I suggest using
`se compare-versions` to see a visual difference of what your CSS
changes did across the whole ebook. Run it with your dirty repo as the
target and it will output image of how your changes differ from head.

On 10/5/25 10:15 AM, Szymon Szott wrote:
> In Dracula, I noticed that the vertical spacing (margin) for letters or
> telegrams quoted in diary entries is different for top and bottom.
> Here's an example from the beginning of Chapter XVII <https://
> standardebooks.org/ebooks/bram-stoker/dracula/text/chapter-17>:
>
> obraz.pngThe paragraph beginning with "The Professor..." is styled in
> local.css with "margin-top: 3em". Is this asymmetry the intended result?
> I believe the CSS /is/ necessary when separating the main "building
> blocks" of Dracula (letters, diary entries, etc.) when they follow one
> after the other. But in this case (a telegram quoted in a diary entry),
> the extra whitespace feels off (to me).
>
> Szymon
>
> --
> You received this message because you are subscribed to the Google
> Groups "Standard Ebooks" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to standardebook...@googlegroups.com
> <mailto:standardebook...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> standardebooks/
> CAEm%2BXfrtRuzR7zPs14obHsH3gQF4vn6txytUyQg4Y1kus8sGLw%40mail.gmail.com
> <https://groups.google.com/d/msgid/standardebooks/
> CAEm%2BXfrtRuzR7zPs14obHsH3gQF4vn6txytUyQg4Y1kus8sGLw%40mail.gmail.com?
> utm_medium=email&utm_source=footer>.

Vince

unread,
12:19 PM (10 hours ago) 12:19 PM
to Standard Ebooks
This big block appears to be the issue:

section[epub|type~="chapter"] > blockquote,
blockquote[epub|type~="z3998:diary"] > header + blockquote,
blockquote > header + *,
blockquote[epub|type~="z3998:diary"] + *,
blockquote[epub|type~="z3998:letter"] + *{
        margin-top: 3em;
}

It’s putting a 3em top margin on anything following a letter, which doesn’t seem like it’s correct?
Reply all
Reply to author
Forward
0 new messages