Forum Moderators: martinibuster

Message Too Old, No Replies

Spacing Underneath Adsense's New Auto In-article Native Ads

         

mrdefinite

2:07 am on Mar 23, 2018 (gmt 0)

5+ Year Member



Adsense has recently rolled out its auto ads and among the different types of such ads is one known as "in-article native ads", which is shown in the content of the page.

It's great and all, but one does anyone know how to create some spacing underneath the auto-ad (i.e., space between the ad and text) whenever it pop ups?

Thanks!



[edited by: not2easy at 3:47 am (utc) on Mar 24, 2018]
[edit reason] removed identifying information/charter compliance [/edit]

not2easy

4:57 am on Mar 24, 2018 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



The ad code is placed within the content in a div or a paragraph, right? Add a css class to the ad's container element and add 10 or 20 px of padding to the bottom of its container.

If that is not an option add a class to the paragraph or div element that follows the ad and add 10 or 20 px padding to the top of it.

tangor

7:30 am on Mar 24, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Can do that, or keep it simple with a centered transparent gif as a break. Both work.

mrdefinite

3:31 am on Apr 5, 2018 (gmt 0)

5+ Year Member



Thanks for the suggestions, not2easy and tangor. Will try them out.

keyplyr

4:21 am on Apr 5, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



@mrdefinite - Use CSS for presentation (as not2easy suggests.) Never use clear .gif files for spacing.