Welcome to WebmasterWorld Guest from 54.146.240.181

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

How I put adsense in the middle of my post?

     

valorben

3:09 pm on Aug 13, 2005 (gmt 0)

10+ Year Member



I want to put adsense right among the text of my post.
I use blogspot by the way.
Please help me!
The effect is like the adsense
<snip>
Thank you!

[edited by: Jenstar at 7:37 pm (utc) on Aug. 13, 2005]
[edit reason] No URLS as per TOS, please! [/edit]

lammert

4:10 pm on Aug 13, 2005 (gmt 0)

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



valorben, first of all welcome to WebmasterWorld!

You need some CSS to do this. The easiest way is to put a div around your AdSense code. For example:

<div style="float: left;">
Here your AdSense script
</div>

This should do the trick. You could also use "float: right" to put the AdSense block on the other side of the page.

ronin

5:37 pm on Aug 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Also, you should specify the width of an element when you float it.

WallyWorld

5:48 pm on Aug 13, 2005 (gmt 0)

10+ Year Member



Just put them in a table and stick it wherever you want it to appear.

<div align="center">
<table border="0" cellpadding="0" align="left">
<tr>
<td align="center">
<p align="center">
Put Google Ads Here
</p>
</td>
</tr>
</table>
</div>

estaquieto

6:06 pm on Aug 13, 2005 (gmt 0)

10+ Year Member



Do a search for an Adsense plugin for blogspot so you don't have to clutter your posts with so much code.

ronin

7:00 pm on Aug 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



With respect to WallyWorld, I'd go with lammert's suggestion.

Errm... WW, I don't know how to say this to you but that <table align="left"> stuff is seriously deprecated. You are slowing your pages down and limiting your creativity with this kind of code. Not to mention giving yourself extra work. Using CSS instead will free you up in at least three ways!

ve3cnu

7:29 pm on Aug 13, 2005 (gmt 0)

10+ Year Member



The way to ad adsense to blogspot blogs is by putting the code into the template, not the individual posts.

Blogspot does not allow you to insert javascript into posts.

Jarodboy

8:25 pm on Aug 13, 2005 (gmt 0)

10+ Year Member



estaquieto: Can you send me a sticky mail with the url where i can finf that plugin?

valorben

8:53 am on Aug 14, 2005 (gmt 0)

10+ Year Member



WallyWorld, Thanks for the tip. It works like a charm. Now my post entry is inline with my adsense. My blog is [newsgator-herald.blogspot.com....] You can check how it looks.

Ossifer

8:55 am on Aug 14, 2005 (gmt 0)

10+ Year Member



I'd take that URL out again..... didn't you notice it had been removed as per the TOS for this board the first time?

valorben

8:56 am on Aug 14, 2005 (gmt 0)

10+ Year Member



ronin,could you please tell me how you manage it with CSS.
Cause I'm Css Novice. I really want to learn about the best solution! Thank you!

valorben

8:58 am on Aug 14, 2005 (gmt 0)

10+ Year Member



I didn't know. Sorry about that. Maybe I need to check the forum rules.

ronin

12:20 pm on Aug 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



valorben, head on over to Forum 83 [webmasterworld.com] for lots of helpful tips and advice about how you can learn CSS and what you can do with it.

Some of the people there (not me) number amongst the most highly qualified CSS designers on the planet.

I first dipped my toe in the water in August 2003 and have been in love with it ever since.

valorben

12:19 am on Aug 15, 2005 (gmt 0)

10+ Year Member



ronin,thank you for helping me a big time!
 

Featured Threads

Hot Threads This Week

Hot Threads This Month