i want to have an image behind my google adsense just like the below image alt text

but when i tried the following css

    background: transparent url("http://www.triphp.com/images/adback.png") repeat-x left bottom; padding-bottom:0px; padding-top:0px;
    height: 352px;
    padding: 50px 30px 0;
    width: 350px;

i am getting image but as background check this image for this alt text

how can i make it like the above one??

2 Answers 2


If you look it's not an image that's behind the ad it's a background colour. Controlled from your adsense setup.

if you go into your ads and edit it. You'll see options to edit "style". You can then choose the background colour you desire :)

Hope the above makes sense :)

  • but in forums i read that it is not possible to make the background of adsense to transparent, we can select the background color to the color of our website is this true? Commented Dec 16, 2010 at 11:36
  • If you look at your screen shot the lines don't carry on through the ad. It's a solid colour.
    – S Philp
    Commented Dec 16, 2010 at 12:05
  • yaa that i know, that i am having white color as background, but there is no option for making background as transparent, you can change color of background but not transparent Commented Dec 16, 2010 at 12:16

It's not an image it's a background and for this you need to add css background property to your code. You can refer to http://www.w3schools.com/css/css_background.asp . You should use


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.