Recently, many of my friends have asked how the shadow effect of Google Adsense ads under the title of this site is achieved. This is actually a very simple CSS technique. This is really not enough to write an article to introduce it, however, yesterday, a netizen wanted to pay for the effect. :) so he promised to give a special introduction to this user.How to Implement shadow background Effects of Google Adsense ads. As follows:
Implementation Method
1. Use a div label to wrap your Google Adsense advertisement code, as shown below:
<Div class = "ggad"> Google Adsense Advertising Code </div>
2. Use photoshop or other tools to create a background image. For example, my background image is a triangle with a width of pixel PX and a height of 113px. it is saved in the images folder of the wordpress topic with the name of mongoggshadow.jpg.
3. Use the CSS code as the <div class = "ggad"> background image and write it in style.css:
. Ggad {
Padding-left: pixel PX;/* width of the background image */
Background: url (images/ggshadow.jpg) left bottom;/* specify the background image and display it in the lower left position */
}
OK.
Violation?
In addition, some netizens asked whether to add such background rules to Google Adsense ads. My answer is: no.
I do not know. I only remember reading an article a long time ago. The general idea is that adding decorative background images for GG advertisements is acceptable (whether the information is accurate cannot be verified ). However, Google Adsense prohibits any form of click induction. So the question is:How to determine whether a background image is decorated or induced?? I think it cannot be judged, or the judgment depends on Google:Google thinks that you are decorating, and think that you are inducing or inducing!
Increase click rate?
The reason why the site uses this effect is completely for good looks and fun. According to the long-term statistics of Adsense on this site, there is basically no impact on the click rate, there is little change before and after the decoration, and sometimes it may even reduce the click rate. Therefore, consider whether your website needs such an effect.