How do I wrap text around Adsense in Dreamweaver?

Discussion in 'HTML & Website Design' started by ganpat, Oct 21, 2007.

  1. #1
    Hi,
    I have a few paragraphs of info for a webpage i'm designing in Dreamweaver MX. My problem is that i'd like this text to wrap around a block of adsense ads. I know how to wrap text around pictures, but not around adsense codes.

    I have little to no knowledge of HTML. If somebody could help me out, i'd really appreciate it. If there is a way to do it using dreamweaver, that would be great, but if i have to go the HTML route, i will. Please help. thank you.
     
    ganpat, Oct 21, 2007 IP
  2. Blame Me

    Blame Me Guest

    Messages:
    162
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The best way to do this I think would be to place your adsense code inside a css div.

    You can then size the div to suit the adsense advert like:

    .site-ad{
    float: right; <<-- float the ad to right or left if required
    height: 130px; << -- size of ad
    width: 130px;
    margin: 5px; <<-- text wrap
    padding: 5px; <<-- padding inside the ad box
    }

    Your html code would look something like:

    <div class="site-ad">

    <p align="center">
    <script type="text/javascript"><!--
    google_ad_client = "pub-************";
    google_ad_width = 120;
    google_ad_height = 120;
    google_ad_format = "120x120_as";
    google_ad_type = "text";
    //2007-07-09:
    google_ad_channel = "########";
    google_color_border = "6F3C1B";
    google_color_bg = "B48F7e";
    google_color_link = "FFFFFF";
    google_color_text = "000000";
    google_color_url = "FFFFFF";
    google_ui_features = "rc:6";
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </p>

    </div>
     
    Blame Me, Oct 21, 2007 IP
    ganpat likes this.
  3. ganpat

    ganpat Peon

    Messages:
    426
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thaks for your detailed help. I guess i can't avoid HTML. :)

    Rep added.
     
    ganpat, Oct 22, 2007 IP