See a beautifying Google Adsense advertisement on the Internet. CodeAnd does not violate the rules. First, create a background image (as shown below) and upload it to the images directory in the template directory. The width and height are 555 × 79. Of course, you can define the size of the background image, it depends on the size of the Google Adsense advertisement you will display.
Then, add the following code to the style.css style sheet file of the template:
# Gsbg_single {
Width: 480px;
Height: 70px;
Background-image: URL (images/gsbg2.jpg );
Padding-top: 10px;
Padding-left: 75px;
}
Finally, insert the following code in the corresponding part of the template to determine where you want to display it:
<Div id = gsbg_single>
# Insert Google Adsense code here
</Div>
If the position is biased, debug the value of padding-top or padding-left until the position is correct.
The effect is as follows:
After adding the background image, you need to change the AdSense font and border color to # cbecf5. Of course, you can also customize it.