How to float your Adsense code in the text

February 22, 2007 · Print This Article

I needed this bit of info recently, and thought I’d repost it. I’ll know where to find it, and maybe someone else will find it useful too. If you want to float your Adsense (or whatever else, for that matter) in the text so the text wraps around it, you can use this snippit of code.

Adsense Float

If you change the “right” to “left” it should be obvious what that will do for you.

You can alter the placement by changing the numbers.

Comments

5 Responses to “How to float your Adsense code in the text”

  1. Natron on February 23rd, 2007 4:08 pm

    I also use this style to float text around images, very nice to use in blogs.

  2. G-Man on February 27th, 2007 7:54 pm

    Yeah, that’ll work but make sure you’ve got a fixed with css design or everything goes to hell in a handbasket.

    At least it did for me :)
    G-Man

  3. Aaron Pratt on March 1st, 2007 5:49 pm

    G-man - You got some broken code in your blog functions.php

    Warning: ob_start() [ref.outcontrol]: output handler ‘ob_gzhandler’ cannot be used after ‘URL-Rewriter’ in /web/sites/GeoffreyF67/lookwhatgmanfound/wp-includes/functions.php on line 336

    I had looked for a reference to “floating” in the past and couldn’t find one, smart.

    Aaron

  4. Amanda on March 2nd, 2007 4:10 pm

    I like your iste there are some cool things on it some of which i’m definately going to use and inform my readers with! did you ever think of expanding your look with free templates?

    thanx i’ll be linking you on my site :)

  5. Tom O. on March 9th, 2007 9:34 pm

    Thanks for the info! Great blog!

Got something to say?