Padding on adsense ads

(Scott Lee) #1

I was wondering if anyone can tell me how I can get rid of the left-side padding on my adsense ads, like this one.

<iframe src="//" width="234" height="60" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>

You can see what I mean by viewing the ad half way down this page.

My website In The Chicken Coop is built with Stacks. I am not that great with html but I do understand some of it. Thank you in advance.

(Brandon Scott Corlett) #2

Hello @chicken,

I’m not familiar with amazon-adsystem so the first part of this suggestion will be me just spitballing.

My guess is that the add doesn’t have padding or margin but rather is aligned to the right and has a specific width.
I know that google adsense allows you to limit ads being displayed to specific dimensions or to be “responsive”. You may look and see if this is an option with amazon. If so then you could define ads that will take up the extra space.

Alternatively, you can place the add inside a container like Joe Workman’s CSS box or Big White Duck’s Section Pro and then apply the appropriate amount of padding on the right to offset the alignment and bring it to center.

I hope this works out for you.



(Scott Lee) #3

Thanks Brandon and I appreciate it! You are right that adsense ads seem to align to the right side of the stack and I want it either to center or allign to the left using the 2-column responsive stack. So, I have been customizing the ads to custom width, however they still do not align with the text in the html stacks with the text stacks.

So I guess I will have to look at Joe’s CSS box!

Best regards,
Scott Lee (a chicken for sure!)