Google Adsense transparent background

user796443 picture user796443 · Jan 12, 2012 · Viewed 9.3k times · Source

How to make the Google Adsense block transparent?

It uses iframe, and resides on other domain, so jQuery can't do anything. I tried to target it with css, but that's also impossible. Any ideas?

I'm not trying to game adsense system, simply I've a background image, and with solid fill the ad looks disgusting.

Answer

Jere picture Jere · Jan 21, 2012

I think some other people have answered correctly that you can't really do this. But what really is the root problem here? You are trying to avoid the ad looking bad on a background image.

simply I've a background image, and with solid fill ad looks disgusting!

Well, why not add some sort of effect that is strictly on your page but makes the ad simply look better. I'm thinking the easiest way to do this is with a box shadow: http://css-tricks.com/snippets/css/css-box-shadow/

Here are some examples of what such an effect might look like:

http://jsfiddle.net/7wPrS/3/

http://jsfiddle.net/7wPrS/4/