Skip to content

Commit 17302bf

Browse files
committed
[how-to] image size/center
1 parent ebd5295 commit 17302bf

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/styles/_how-to.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,15 @@
4747
margin: 0;
4848
}
4949
}
50+
p:has(img) {
51+
text-align: center;
52+
}
5053
img {
5154
max-width: 100%;
5255
height: auto;
56+
max-height: 60vh;
57+
object-fit: contain;
58+
text-align: center;
5359
}
5460
}
5561
}

0 commit comments

Comments
 (0)