Skip to content

Commit 46fd399

Browse files
fix narrow viewport ad
1 parent f264aef commit 46fd399

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

css-masonry/the-daily-oddity.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,14 @@
251251
background-size: 130px;
252252
}
253253

254+
@media (max-width: 500px) {
255+
article.ad {
256+
padding-inline-start: 4rem;
257+
padding-block-start: calc(130px + 4rem);
258+
background-position: center 2rem;
259+
}
260+
}
261+
254262
article.ad h4 {
255263
margin-block-start: 0;
256264
}

0 commit comments

Comments
 (0)