How to place Google ads side by side ?

Discussion in 'HTML & Website Design' started by vinith98, Mar 2, 2011.

  1. #1
    Hello,

    My question is regarding placement of Google ads.

    I want to place 300*250 rectangle ads side by side something like in this page http://makemoneyideas.in/

    How do I go about it, I am not much into web designing so can't find a way to do it. Any help will be greatly appreciated.

    Regards,
    Vinith Almeida
     
    vinith98, Mar 2, 2011 IP
  2. painai

    painai Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Did you try put both of them inside "div" tags and then using this style:

    float:left;
    margin:0px;
    padding:0px;

    Or custom how you desire.
     
    painai, Mar 2, 2011 IP
  3. vinith98

    vinith98 Notable Member

    Messages:
    480
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    240
    #3
    Well I'm a beginner to all this, I am using Front page with a template. Could you please elaborate ?
     
    vinith98, Mar 2, 2011 IP
  4. clickbump

    clickbump Greenhorn

    Messages:
    29
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    15
    #4
    Try something like this (replace id values with your own)

    	<style type="text/css">
    	.adsense300 {float:left;}
    	</style>
    	<div class="adsense300 left"><script type="text/javascript"><!--
    	  google_ad_client = "pub-id-goes-here";
    	  google_ad_slot = "slot-id-goes-here";
    	  google_ad_width = 300;
    	  google_ad_height = 250;
    	  //-->
    	  </script>
    		<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>
    		<div class="adsense300 right"><script type="text/javascript"><!--
    	  google_ad_client = "pub-id-goes-here";
    	  google_ad_slot = "slot-id-goes-here";
    	  google_ad_width = 300;
    	  google_ad_height = 250;
    	  //-->
    	  </script>
    	  <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>
    HTML:
     
    clickbump, Mar 2, 2011 IP
  5. vinith98

    vinith98 Notable Member

    Messages:
    480
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    240
    #5
    Thank you clickbump, will try this out.
     
    vinith98, Mar 2, 2011 IP