basic CSS: remove first/last-child margin not only for <p>

This commit is contained in:
Matthias Geier
2020-05-12 13:05:00 +02:00
parent 1771bbb927
commit 6e3ae3fc6f

View File

@@ -426,13 +426,13 @@ table.citation td {
border-bottom: none; border-bottom: none;
} }
th > p:first-child, th > :first-child,
td > p:first-child { td > :first-child {
margin-top: 0px; margin-top: 0px;
} }
th > p:last-child, th > :last-child,
td > p:last-child { td > :last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
@@ -505,11 +505,11 @@ ol.upperroman {
list-style: upper-roman; list-style: upper-roman;
} }
li > p:first-child { li > :first-child {
margin-top: 0px; margin-top: 0px;
} }
li > p:last-child { li > :last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
@@ -557,7 +557,7 @@ dl {
margin-bottom: 15px; margin-bottom: 15px;
} }
dd > p:first-child { dd > :first-child {
margin-top: 0px; margin-top: 0px;
} }