WebAds 468x60 Ad


Powered by WebAds

Tuesday, May 1, 2007

Positioning your ad

The question has come up, "How do you more accurately control the positioning of the Web Ad on the page?".

There are two parts to that answer. The first is straightforward, you simply insert the WebAds code into the place in the HTML code where you want it to appear next.

This is good in a limited sense, but sometimes you want to do more. You might want to nudge the ad a little right, or have it positioned in the top-right corner of the page.

At that point you need to add some inline CSS code (nothing difficult):


<div id="webadsbannercode" style="TEXT-ALIGN: left; POSITION: absolute; RIGHT: 3px; TOP: 4px; ">


By changing 4px or the 3px in the example above you can control the absolute positioning of the ad from the right or from the top. You can use LEFT:3px instead of RIGHT:3px if you want it positioned from the left. Piece of cake.


Where does it go within the WebAds code?

The above line of code goes right at the beginning of the code:

<!-- BEGIN WebAds.co.il CODE BLOCK -->
<div id="webadsbannercode" style="TEXT-ALIGN: left; POSITION: absolute; RIGHT: 3px; TOP: 4px; ">


And you mustn't forget to add in </div> right before the end of the code block.

</div>
<!-- END WebAds.co.il CODE BLOCK -->

No comments: