How to align next to adsense block?

Discussion in 'HTML & Website Design' started by kevinn, Dec 11, 2006.

  1. #1
    I have a wordpress blog and i'm using the adsense-deluxe plug-in to show the adsense ads. My question is how do I align the text of my article next to the 250x250 square instead of it being under the ad by default?

    Thanks
     
    kevinn, Dec 11, 2006 IP
  2. ednit

    ednit Peon

    Messages:
    152
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I use this for something else, and you can modify it to your need - though it formats the text around the "box". Here is the css:

    #adsense250x250 {
    width: 250px;
    background-color: #ffffff;
    height: 250px;
    display:block;
    float:right;
    padding-left: 6px;
    }
    Code (markup):
    Here is where you'd put your adsense code:

    <div id="adsense250x250">
    <!-- ADSENSE CODE HERE -->
    </div>
    Code (markup):

    I think that's what you're looking for. You can float:whatever, right or left & mess with the size & background color. You'll probably have to tweak it to work for your setup.
     
    ednit, Dec 11, 2006 IP