Can't get text to wrap around adsense block - help needed

Discussion in 'HTML & Website Design' started by tlsolutions, Aug 30, 2007.

  1. #1
    Hi gang,

    I jsut started a new blog and i added adsense to my pages, and every thing works fine, except I cannot get the text in my posts to wrap around the left side adsense block, instead my entire post starts beneath my adsense block.

    Can someone give me some insight into solving this issue?

    I want my text to start to the right of the adsense block at the top and then flow down as the post continues. Like when you wrap text around a picture.

    Also if you notice anything else about the site you would care to comment on, I would appreciate it.

    http://windowcleaningsuccess.com/blog

    Thanks in advance.
     
    tlsolutions, Aug 30, 2007 IP
  2. adamjthompson

    adamjthompson Well-Known Member

    Messages:
    1,242
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    125
    #2
    Create a CSS div for the adsense block and set it to float:right (or float:left depending on which side you want the adsense on).

    Hope that makes some sense. :p
     
    adamjthompson, Aug 30, 2007 IP
  3. wyattt

    wyattt Active Member

    Messages:
    710
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    95
    #3
    wyattt, Aug 30, 2007 IP
  4. tlsolutions

    tlsolutions Peon

    Messages:
    182
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I'm not very good with CSS, could you be a little more specific please.
     
    tlsolutions, Aug 30, 2007 IP
  5. adamjthompson

    adamjthompson Well-Known Member

    Messages:
    1,242
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    125
    #5
    Try this:

    put this on your page/post:
    
    <div class="adsense">
    adsense code here
    </div>
    
    HTML:
    put this in your css file:

    .adsense{
    float:left
    height:x;
    width:x;
    margin:5px;
    }
    Code (markup):
    replace x with the height and width of your adsense unit.

    Try that and see if it works...
     
    adamjthompson, Aug 31, 2007 IP