Fix the extra 2px space at the bottom of <figure> elements
It was because they were display: inline-block
This commit is contained in:
parent
5fd6f473dd
commit
cb025398b3
1 changed files with 5 additions and 1 deletions
|
@ -171,9 +171,12 @@ figcaption {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
details {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
figure {
|
figure {
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
display: inline-block;
|
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-inline: 0;
|
margin-inline: 0;
|
||||||
|
@ -193,6 +196,7 @@ figure a:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
figure img {
|
figure img {
|
||||||
|
display: block;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
height: auto;
|
height: auto;
|
||||||
max-width: var(--content-width);
|
max-width: var(--content-width);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue