1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Adding correctly Google AdSense on each side of a site

Discussion in 'Placement / Reviews / Examples' started by Svetick, Jun 3, 2006.

  1. #1
    Hi everybody!

    I have a problem. I've placed Google AdSense ad (skyscraper) on right side of my site, please look at a site: http://www.trading-systems-and-signals.com

    I've maid it like this:

    1) Main table of whole site is:

    <div align="center">
    <div style="width: 600px; position: relative;">
    <table width="600" height="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#f9f9f9" style="border: solid #000; border-width: 0px 1px 1px 1px;">
    <tr><td valign="top">
    ________________________________________________________
    2) (for AdSense)

    <div style="right: -119px; position: absolute;top: -15px;"><script type="text/javascript"><!--
    google_ad_client = "pub-";
    google_ad_width = 120;
    google_ad_height = 600;
    google_ad_format = "120x600_as";
    google_ad_type = "text";
    google_ad_channel ="";
    google_color_border = "F7DEAA";
    google_color_link = "B47B10";
    google_color_bg = "FFFFFF";
    google_color_text = "000000";
    google_color_url = "940F04";
    //--></script><br>

    But It does not manage to me to make the same placement on the left side of a site.

    Please, help! The goal is to have two AdfSense skyscrapers on each side of my site.

    Thank you beforehand!!!
     
    Svetick, Jun 3, 2006 IP
  2. brian394

    brian394 Well-Known Member

    Messages:
    226
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    108
    #2
    Try this...

    Demo: http://home.earthlink.net/~duhomax/2_skyscrapers.html

    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
     <head>
      <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
      <title>3-Column Layout Test</title>
      <style type="text/css">
       div#container {
        width: 862px; /* 600px (center col width) + 120px (left col width) + 120px (right col width) + 10px (left spacer) + 10px (right spacer) + 2px (center col border) */
        margin-left: auto;
        margin-right: auto;
        position: relative;
       }
       div#center_box {
        position: absolute;
        left: 130px;
        width: 600px;
        height: 600px;
        border: 1px solid black;
       }
       div#left_box {
        position: absolute;
        left: 0px;
        width: 120px;
        height: 600px;
        border: 1px solid black;
       }
       div#right_box {
        position: absolute;
        right: 0px;
        width: 120px;
        height: 600px;
        border: 1px solid black;
       }
      </style>
     </head>
     <body>
      <div id="container">
       <div id="left_box">Left Column</div>
       <div id="center_box">Center Column</div>
       <div id="right_box">Right Column</div>
      </div>
     </body>
    </html>
    
    Code (markup):
     
    brian394, Jun 3, 2006 IP
  3. Svetick

    Svetick Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you very much!!!

    Your response solves my problem!

    Best Regards,
    Svetick
     
    Svetick, Jun 3, 2006 IP