Adsense block position, CSS help

Discussion in 'BlackHat Lounge' started by BlackxHat, Aug 12, 2012.

  1. BlackxHat

    BlackxHat Power Member

    Joined:
    Oct 6, 2009
    Messages:
    591
    Likes Received:
    78
    edit: nevermind
     
    Last edited: Aug 12, 2012
  2. xTiger

    xTiger Junior Member

    Joined:
    Jul 9, 2012
    Messages:
    175
    Likes Received:
    129
    Location:
    Getting Richer
    In the css:

    google{
    position:absolute;
    right:0px;
    width:160px;
    top:120px;
    border-left: 1px solid black;
    }

    Then in your page:

    <div id="google">
    <--! code here -->
    </div>
     
    • Thanks Thanks x 1
  3. BlackxHat

    BlackxHat Power Member

    Joined:
    Oct 6, 2009
    Messages:
    591
    Likes Received:
    78
    I had to change <div id="google"> to <div class="google"> for it to work but i'm still getting the same problem, when i zoom out it moves left, when i zoom in, it moves right
     
  4. xTiger

    xTiger Junior Member

    Joined:
    Jul 9, 2012
    Messages:
    175
    Likes Received:
    129
    Location:
    Getting Richer
    Make sure u include
    display:block; in the CSS and also position: absolute;
     
    • Thanks Thanks x 1
  5. BlackxHat

    BlackxHat Power Member

    Joined:
    Oct 6, 2009
    Messages:
    591
    Likes Received:
    78
    This is how i have it, it is position but it's moving left/right like i said above
     
  6. xTiger

    xTiger Junior Member

    Joined:
    Jul 9, 2012
    Messages:
    175
    Likes Received:
    129
    Location:
    Getting Richer
    Can you post the web or a demo?
     
    • Thanks Thanks x 1
  7. BlackxHat

    BlackxHat Power Member

    Joined:
    Oct 6, 2009
    Messages:
    591
    Likes Received:
    78
    /// got it.
     
    • Thanks Thanks x 1
    Last edited: Aug 12, 2012