TECH adsense absolute top left of browser?

maxxpower

OG Lauren Crew - Observer
OT Supporter
May 27, 2007
26,332
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.
 

Jesse

PSN: iamajesse; XBL: Inhale My Rod; G8 GT crew; Ne
OT Supporter
Jan 12, 2005
25,625
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.
 
TS
TS
maxxpower

maxxpower

OG Lauren Crew - Observer
OT Supporter
May 27, 2007
26,332
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.
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>
 

White Stormy

Take that, subspace!
Sep 17, 2002
85,544
Sparkopolis
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>
change the body tag to this..
<body style="background-color: black; color: blue; margin: 0;">
 

Users who are viewing this thread

About Us

  • Please do not post anything that violates any Local, State, Federal or International Laws. Your privacy is protected. You have the right to be forgotten. Site funded by advertising, link monetization and member support.
OT v15.8.1 Copyright © 2000-2022 Offtopic.com
Served by fu.offtopic.com

Online statistics

Members online
333
Guests online
42
Total visitors
375

Forum statistics

Threads
369,565
Messages
16,895,664
Members
86,875
Latest member
Theodor