Skip to content

Prose class: first and last text element don't have 0 top en bottom margin respectively when using article block #258

Answered by robdekort
kobe-f8 asked this question in Q&A
Discussion options

You must be logged in to vote

Good find. I think this should work:

.prose :where(.prose > div > :first-child):not(:where([class~="not-prose"] *)) {
    margin-top: 0;
}
.prose :where(.prose > div > :last-child):not(:where([class~="not-prose"] *)) {
    margin-bottom: 0;
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@robdekort
Comment options

@robdekort
Comment options

@kobe-f8
Comment options

Answer selected by robdekort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants