Online Money Making Forum

You are not logged in.

Positioning Your Google AdSense Adverts

One way of positioning your AdSense adverts is to use CSS with the Div tag.

First of all, open your HTML editor and paste the following CSS code inside your <head> tag.

<style type="text/css">
<!--
#adsense {
position: absolute;
left: 400px;
top: 200px;
}
-->
</style>

AdSense-Guide.net- Google AdSense - Getting started with Adsense

The top and left tags indicate where exactlly the AdSense advert will be placed, e.g.

The AdSense advert top will be positioned ### from the top of your browser.

The AdSense advert left will be positioned ### from the left of your browser.

 

 

<div id="adsense">

</div>

AdSense-Guide.net- Google AdSense - Getting started with Adsense

 

 

 

Now we are going to add the Div tag and our AdSense code inbetween it.

Paste the below code into your <body> tag and insert your AdSense code in between the <div> tag.

<div id="adsense">

</div>

AdSense-Guide.net- Google AdSense - Getting started with Adsense

 

 

You can now upload your webpage and keep playing with the 'top' and 'left' values until your AdSense advert positioning is perfect.

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson