Skip to content

Commit b691a88

Browse files
committed
Center images on blog pages
1 parent 1729e9c commit b691a88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/layouts/BlogPost.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,15 @@ const { title, description, author, pubDate, updatedDate, heroImage } =
7474
max-width: 100%;
7575
margin-left: auto;
7676
margin-right: auto;
77-
7877
padding: 10px;
7978
}
8079

8180
:global(img) {
8281
max-width: 100%;
8382
width: auto;
8483
height: auto;
84+
display: block;
85+
margin-left: auto;
86+
margin-right: auto;
8587
}
8688
</style>

0 commit comments

Comments
 (0)