1

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

but when i tried the following css

L{
    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

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

3
  • 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? 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
    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 Dec 16, 2010 at 12:16
1

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

.element_id{background-image:url("your_image.gif");} 

Your Answer

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

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