Fix table margins, padding, and overflow
This sets up a simple unstyled table with spacing that matches other elements.
This commit is contained in:
parent
8d534bcdad
commit
edb5a0f856
|
@ -163,3 +163,20 @@ sup, sub {
|
||||||
sub {
|
sub {
|
||||||
top: 0.25rem;
|
top: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Tables */
|
||||||
|
table {
|
||||||
|
border-spacing: 0;
|
||||||
|
margin: 0 0 1.5rem 0;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
}
|
||||||
|
th, td {
|
||||||
|
padding: 0 .75rem;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
th:first-child, td:first-child {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
th {
|
||||||
|
text-align: inherit;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue