Help - Search - Members - Calendar
Full Version: Coding Help
Zymic Webmaster Forums > Web Design & Development > General Web Design Discussion
refincome
hopefully someone can help. my beta site is refincome,com.

i'm trying to place google adsense ads on the page. i have the adsense code, but don't know how to place it in the code document where i want it/them to appear. if you go to the site, i'd like to place it/them in the blue on either side of the white center, close to the top or middle. ideas???? thx.
Jacob
You need to make div's for them to sit in.

Jacob.
refincome
thx nazry. i can see divs all thru the body (white part). but i don't know where to insert them and code them to align on either side (in the blue) near the top........ man lots to learn in this coding thing!
Jetteh22
<div style="position: absolute; top: 150px; left: 3px; border: 1px solid black; background: white; color: black;">
INSERT ADSENSE CODE HERE
</div>

put that anywhere in the body of your page.

top: 150px --- That tells how far from the top of the page to put it, you can change that accordingly. The higher the value, the lower on the page it is.
left: 3px ---- How far from left you want it to be... you can change that too...

That should work..
refincome
CO, thanks! once again, you've been a big help. works perfectly.......
Jetteh22
your welcome, anytime.
Jacob
Doesn't seem normal...(FF2/FF3)
You need to re-do your div's mate.

Jacob.
MrTouz
even if you do they will be to large for a reso of 1024x768) you either need smaller adds or a smaller design or your users will have to scroll not making them able to see the adds (no point of having them than...)
refincome
thanks guys. on my screen it looks normal. i'll try to place them as far left and right as i can, although at 1024x768 it doesn't look like there'll be enough room on either side. let me know if it's better. thx.
Banjo
You could always place the ads if you really want them in the actual layout, maybe along the bottom under or above the hit counter thing.
refincome
how do you place the ad script so it's in a fixed position no matter the screen resolution? i view my layout in 1678x883 and it looks fine, but when i view it in 1024x768, the ad is way off (in my case in the middle of the page). in this case, i'm trying to place a vertical ad in the body of the page. thx.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.