When you buy through links on our site we may earn.

[Fix] Google Ad Not Fitting in Nicely with a Horrible Border

[Fix] Google Ad Not Fitting in Nicely with a Horrible Border

Sometimes, I use Google AdSense ads on my websites, and I noticed that some of the smaller ads when inserted into a bigger block, had a horrible border and in my opinion did not look nice.

This leads to a poor user experience.

A possible solution for this is outlined below. This worked for me. It may also work for you.

I use the WordPress platform. Go into your WordPress Dashboard, then Appearance, then Editor.

Then select the Stylesheet (style.css) file for the current active WordPress theme.

Then using the browser’s search function (In Microsoft’s Internet Explorer and Microsoft’s Edge product this is achieved by pressing the control key and F key at the same time).

Enter ins { as the search phrase to find.

Add CSS code to Ad

For me, I updated the information for the ins tag to the information highlighted in yellow in the image above. Then the Google adsense ad looks a lot better. It fits in nicely to the block, with the background now transparent. It now looks a lot better. More importantly for me, the horrible border has disappeared.

Happy days indeed. 🙂 🙂

Meet David Who Runs This Website
Article by:
Hi, I'm David, the senior editor and senior writer at Work From Home Notes covering products, apps, services, and work from home issues and trends. Prior to launching Work From Home Notes I was an IT professional for over twenty seven years. Now I work from home. Read more.