How to leave space between two side by side ads code

Discussion in 'HTML & Website Design' started by FireStorM, Jun 22, 2012.

  1. #1
    Hello,

    I have added two ads side by side on my website, i want a space between them .. how can i do this please?

    here is the code

    <script type="text/javascript"><!--
    google_ad_client = "98989898";
    google_ad_slot = "dsaadada";
    google_ad_width = 250;
    google_ad_height = 250;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script> 
    <script type="text/javascript"><!--
    google_ad_client = "757555";
    google_ad_slot = "5555555";
    google_ad_width = 250;
    google_ad_height = 250;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script> 
    
    
    
    Code (markup):
    Here is how it is appearing on my website .. please help me to have a space between them, they will be side by side

    leaving-space.jpg
     
    FireStorM, Jun 22, 2012 IP
  2. dreamzdb

    dreamzdb Member

    Messages:
    41
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #2
    I think this is what you are after...

    
    <div>
    <script type="text/javascript"><!--
    google_ad_client = "98989898";
    google_ad_slot = "dsaadada";
    google_ad_width = 250;
    google_ad_height = 250;
    //-->
    </script>
    </div>
    <div style="margin-left: 15px;">
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script> 
    <script type="text/javascript"><!--
    google_ad_client = "757555";
    google_ad_slot = "5555555";
    google_ad_width = 250;
    google_ad_height = 250;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </div>
    
    Code (markup):
     
    dreamzdb, Jun 23, 2012 IP
    sanchyclub likes this.