Forum Moderators: martinibuster

Message Too Old, No Replies

Positioning AdSense Block As Images Feature

         

Jon_King

1:19 pm on Jun 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Wouldn't it be handy if you could adjust the vertical and horizontal space around the adblock; also the left, right and center alignment exactly the same as we can do with an image.

This would save those goofy tables many of us use to get the alignment and space we want... not to mention quickness and ease of adjustment. Something like: hspace="12px" vspace="12px" align="left".

PatrickDeese

1:46 pm on Jun 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can, you can do it with CSS.

Jon_King

1:49 pm on Jun 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I knew you where gonna say that :). Show me how.

PatrickDeese

2:01 pm on Jun 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



something like this:
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed vel ante. Ut sit amet nisl.</p>
<p style="float:right;width:250px;padding:8px;margin:20px;">
<!-- adsense code -->

<!-- end adsense -->
</p>
<p>Aliquam vitae orci. In hac habitasse platea dictumst. Phasellus sit amet turpis eu odio interdum egestas. Donec aliquam arcu. Pellentesque.</p>

Jon_King

4:06 pm on Jun 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Patrick I've been a slouch not getting more into css. You know, the easy old way. But I really think the simplicty of the css code compared to what I'm currently doing is important and I wish we did even more code talk around here in the non-programming forums.

Thanks, I did not know it could be so artfully done. Yes, I think simple code has beauty.