Skip to content

Commit 25704d4

Browse files
authored
fix native ad centering by keeping the old iframe margin:auto in for ad slot content (#14668)
1 parent e0a96d8 commit 25704d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dotcom-rendering/src/lib/adStyles.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ const adSlotStyles = css`
7171
/* iframes are inline by default, so we need to set them to block to avoid the same whitespace quirk mentioned in the above comment */
7272
iframe {
7373
display: block;
74+
/* Centre the content within this element */
75+
margin-left: auto;
76+
margin-right: auto;
7477
}
7578
}
7679

0 commit comments

Comments
 (0)