Newbie-How to wrap text beside adsense ads

Discussion in 'HTML & Website Design' started by mexhilary, Nov 2, 2006.

  1. #1
    Hi.
    This is my first post and I'm having difficulty with my first webpage
    www.lose-weight-fast-site.com
    I am using Dreamweaver. When I added the adsense ads code it doesn't show on my local file but when I put it up there are the ads - and there is a big space beside them. I can't figure out how to wrap the text. Your advice would be appreciated.
    Hilary
     
    mexhilary, Nov 2, 2006 IP
  2. Corey Bryant

    Corey Bryant Texan at Heart

    Messages:
    1,126
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can float the ad to the left and then float the other information to the right. We could show you if we had the source code.
     
    Corey Bryant, Nov 2, 2006 IP
  3. mexhilary

    mexhilary Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Okay. Here is the code including a bit from above and below.
    I now had an amazing program - one that really worked and I felt
    great.<EM><STRONG> </STRONG></EM><STRONG><EM>I was excited!!</EM></STRONG>
    <STRONG><EM>It was a miracle!! </EM></STRONG></P>

    <SCRIPT type=text/javascript><!--
    google_ad_client = "pub-8248215547759351";
    google_ad_width = 300;
    google_ad_height = 280;
    google_ad_format = "336x280_as";
    google_ad_type = "text";
    //2006-10-31: lose-weight-fast-site.com
    google_ad_channel = "5419093426";
    google_color_border = "99FFFF";
    google_color_bg = "99FFFF";
    google_color_link = "0000FF";
    google_color_text = "660000";
    google_color_url = "999999";
    //--></SCRIPT>

    <SCRIPT src="index_files/show_ads.js" type=text/javascript>
    </SCRIPT>

    <P class=style1 align=left>Now this is not a diet for a long term. But it got me
    started. After the 11 days,
     
    mexhilary, Nov 2, 2006 IP
  4. Corey Bryant

    Corey Bryant Texan at Heart

    Messages:
    1,126
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Using the <p> tag, you are going to have block element. It might be better to use two divides and float them accordingly, something like
    <SCRIPT type=text/javascript><!--
    google_ad_client = "pub-8248215547759351";
    google_ad_width = 300;
    google_ad_height = 280;
    google_ad_format = "336x280_as";
    google_ad_type = "text";
    //2006-10-31: lose-weight-fast-site.com
    google_ad_channel = "5419093426";
    google_color_border = "99FFFF";
    google_color_bg = "99FFFF";
    google_color_link = "0000FF";
    google_color_text = "660000";
    google_color_url = "999999";
    //--></SCRIPT></div>
    
    <SCRIPT src="index_files/show_ads.js" type=text/javascript>
    </SCRIPT>
    
    <div class="style1" style="text-align:right">Now this is not a diet for a long term. But it got me
    started. After the 11 days,</div>
    Code (markup):
     
    Corey Bryant, Nov 2, 2006 IP
  5. mexhilary

    mexhilary Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank you, Corey, I'll try it right now.

    Hilary
     
    mexhilary, Nov 2, 2006 IP
  6. mexhilary

    mexhilary Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Corey, it didn't work. Any other ideas - hopefully. With Dreamweaver should I be putting the ads in a table? I did try that but that looked clumsy and I still couldn't figure out how to wrap the text. Any thoughts?

    Hilary
     
    mexhilary, Nov 2, 2006 IP
  7. Franck S

    Franck S Peon

    Messages:
    775
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I always put this code before the ad, and it's working well for me:

    <div style=”display:block;float:right;margin: 0px 10px 0px 0px;”><!--PUT YOUR adsense Code Here--></div>

    Let me knowhow it works.
     
    Franck S, Nov 2, 2006 IP
  8. Corey Bryant

    Corey Bryant Texan at Heart

    Messages:
    1,126
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You can put it in a table and wrap the other text around it without having a size in the table. Make sure you are not using Dreamweaver's view but a browser to view the results.
     
    Corey Bryant, Nov 2, 2006 IP
  9. .Indy

    .Indy Peon

    Messages:
    107
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    -- Eh, nevermind --
     
    .Indy, Nov 2, 2006 IP
  10. mexhilary

    mexhilary Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Hi Franck S - didn't change a thing. I put your code and the adsense code in where you said but no change - and no ads. Ah well, maybe it is better that I don't have adsense on this webpage. Better they should click on my affiliate link then I make more money :) 'Tis a puzzle though.
    Hilary
     
    mexhilary, Nov 3, 2006 IP