Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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??

share|improve this question
up vote 2 down vote accepted

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 :)

share|improve this answer
thanks for your help, i ll take a look on it – ntechi Dec 16 '10 at 11:28
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? – ntechi Dec 16 '10 at 11:36
If you look at your screen shot the lines don't carry on through the ad. It's a solid colour. – Si Philp Dec 16 '10 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 – ntechi Dec 16 '10 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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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