Site logo

Archived topic

AdSense Auto Ads Creating Whitespace

3 replies · Started by Justin on January 10, 2019

Viewing posts 1–4 of 4

Hi Guys,

When inserting AdSense auto ads, whitespace is created above the ad in the header. I provided an example URL in the "admin only" field below.

I saw someone else recommended the follow additional css. I tried it with no success.

header div.google-auto-placed .adsbygoogle-noablate {
  margin: 0 auto !important;
}

Can you help?

Hi there,

Try this:

body .adsbygoogle.adsbygoogle-noablate {
    margin: 0 auto !important;
}

The default margin is written as inline style which makes it hard to overwrite so if the above doesn't work then you will have to figure out a way to remove the inline style:
https://www.screencast.com/t/eMi7477PViW

Let me know if this helps :)

Bingo! Thanks, Leo. :)

No problem :)

This archived topic is closed to new replies.