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>


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.

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>


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