Skip to content

Commit

Permalink
fix margin collapse for h3
Browse files Browse the repository at this point in the history
Both h2 and h3 have a margin-top set, but this rule for removing/collapsing
the margin was only defined for h2. I'm assuming this was just forgotten.
  • Loading branch information
Johann150 committed Jun 8, 2024
1 parent ea5a0c5 commit f24a010
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion simple.css
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,9 @@ article, fieldset, dialog {
}

article h2:first-child,
section h2:first-child {
section h2:first-child,
article h3:first-child,
section h3:first-child {
margin-top: 1rem;
}

Expand Down

0 comments on commit f24a010

Please sign in to comment.