WEB adsense absolute top left of browser?

Discussion in 'OT Technology' started by maxxpower, Oct 23, 2008.

  1. maxxpower

    maxxpower OG Lauren Crew - Observer OT Supporter

    Joined:
    May 27, 2007
    Messages:
    26,348
    Likes Received:
    0
    absolute top left browser positioning?
    I am messing with an ad script that will be dynamically loaded into a site. Whats the easiest way to get this adsense banner to load absolute top left of the browser?

    http://inetscreensavers.com/ads/bmw.html

    Dont mind the gay colors as that is irrelevent to the design at the moment.
     
  2. Jesse

    Jesse PSN: iamajesse; XBL: Inhale My Rod; G8 GT crew; Ne OT Supporter

    Joined:
    Jan 12, 2005
    Messages:
    25,649
    Likes Received:
    0
    Location:
    California :: (925)
  3. maxxpower

    maxxpower OG Lauren Crew - Observer OT Supporter

    Joined:
    May 27, 2007
    Messages:
    26,348
    Likes Received:
    0
    thanks.
    This didnt work :wtc:
    Code:
    <body>
    CSS
    </body>
    
     
  4. maxxpower

    maxxpower OG Lauren Crew - Observer OT Supporter

    Joined:
    May 27, 2007
    Messages:
    26,348
    Likes Received:
    0
    lol, im funny today
     
  5. Jesse

    Jesse PSN: iamajesse; XBL: Inhale My Rod; G8 GT crew; Ne OT Supporter

    Joined:
    Jan 12, 2005
    Messages:
    25,649
    Likes Received:
    0
    Location:
    California :: (925)
    Why not just put it before any code? Everything is top left justified by default. Use a <br / > after it to drop your text below it.
     
  6. maxxpower

    maxxpower OG Lauren Crew - Observer OT Supporter

    Joined:
    May 27, 2007
    Messages:
    26,348
    Likes Received:
    0
    There is always a few pixels spaced above and to the left of the ad though, i need it right up againts the browser top and side.

    Ive tried this code, but that leaves the space as well.

    Code:
    <html>
    <head>
    <title> BMW Test Ad </title>
    <style type=”text/css”>
    #ad1 {
     position:absolute;
     top:0;
     left:0;
     width:728px;
    }
    </style>
    </head>
    <div id="ad1">
    My Adshit in here
    </div>
    <body bgcolor="black" text="blue">
    myshit in here
    </body>
    </html>
    
     
  7. maxxpower

    maxxpower OG Lauren Crew - Observer OT Supporter

    Joined:
    May 27, 2007
    Messages:
    26,348
    Likes Received:
    0
    back to work, will check back later :)
     
  8. White Stormy

    White Stormy Take that, subspace!

    Joined:
    Sep 17, 2002
    Messages:
    85,489
    Likes Received:
    70
    Location:
    Sparkopolis
    change the body tag to this..
    <body style="background-color: black; color: blue; margin: 0;">
     

Share This Page