Ad Block and Text Don't Look Right

5 replies
Will someone please look at Natural Anxiety Supplements | and tell me what I'm doing wrong? I'm trying to have the text wrap around the ad block, but there's not enough space separating the two and the ad would look better if the top of it was level with the text.

What code do I need to make the ad block and text look right?
#block #text
  • Profile picture of the author Anthony C
    Try using a div block. This works well for me. Use the margin-left attribute to adjust the spacing between the ad and the text.

    <div style=”display:block;float:right;margin-left:6px;”>
    < adsense code here>
    </div>
    {{ DiscussionBoard.errors[4248282].message }}
    • Profile picture of the author CatherineMay
      I am already using a <div> block.<div style=”display:block;float:right;margin: 5px 5px 5px 5px;”>adsense script </div>

      I have now gone to a smaller ad (250 x 250), and overall it does look better, but still the top of the ad is below the top of the text. I would prefer to be using the larger ad (300 x 250), but will settle for the small one if need be.

      Actually, it only looks better when google puts in regular text ads, instead of the image ads, so I still have a problem. EDIT: changed the adsense settings so that I only have text ads.

      Now, does anyone know how to get the tops level?
      Signature

      {{ DiscussionBoard.errors[4248363].message }}
  • Profile picture of the author Ken Durham
    You might try using negatives. Be sure to cross browser check. You could use a little padding to the left, as shown here.

    <div style="display:block;float:right;margin: -25px 0 0 5px; padding-left:5px;">
    Signature

    yes, I am....

    {{ DiscussionBoard.errors[4248545].message }}
    • Profile picture of the author CatherineMay
      Thanks so much, Ken...that was exactly what I needed.

      You've saved my day!
      Signature

      {{ DiscussionBoard.errors[4248582].message }}
      • Profile picture of the author Ken Durham
        Originally Posted by CatherineMay View Post

        Thanks so much, Ken...that was exactly what I needed.

        You've saved my day!
        Glad I could help
        Signature

        yes, I am....

        {{ DiscussionBoard.errors[4248622].message }}

Trending Topics