Ken1988 wrote:Its a nice trick, but since my Css experience isn't too wel I cant manipulate the position very good.
Who could help me with some advises?
www.chatair.nl/forum is mine.
fairly easy:
<div id="content" style="position: relative;">
<div class="adsense"><!-- adsense code here --></div>
</div>
...now that the structure is in place, and the parent container is set to "relative" you can use absolute positioning to put it wherever you want w/in that container.
/* a few examples of positioning */
#content { position: relative; } /* inline style not necessary in above example */
.adsense { position: absolute; top: 0; right: 0; } /* upper right corner of #content */
.adsense { position: absolute; top: 0; left: 0; } /* upper left corner of #content */
.adsense { position: absolute; bottom: 100px; left: 10px; } /* 100px above the bottom and 10px from the left */
You may need to give the container a width and height (at least width since block-level elements are 100% by default)...
.adsense { width: 120px; height: 220px; } /* set a fixed w/h of the adsense container */