...

View Full Version : how to move my head banner ad ?



huntsman
11-22-2011, 04:50 AM
Hi guys, i searched all over google to find a fix and didint find much. Sorry if its already been asked of if i posted in the wrong place. Im really tired and need help getting this done.

So far i have manged to actually put the ad in there and center it but I need help bringing it down so its next to Kz Komputers.

If you can take a look www.kzkomputers.com so you know what im trying to do.

This is the code that i have used so far for the banner

<center>[<script type="text/javascript"><!--
google_ad_client = "ca-pub-7004674886429240";
/* header */
google_ad_slot = "7508208066";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>]</center>

What am i missing in order to bring this ad down so its to the right of kz komputers logo ? I did something before and it brought it down but not just the ad it was the whole margin that was getting brought down. Im really lost and it seems like its a simple thing to do but since i never did any coding its really hard for me, and im really pissed off :( cuz i cant get it.

any help would be appreciated greatly. I really want to get this done tonight.

Frankie
11-22-2011, 09:48 AM
Let me first of all say that I think that putting that sort of ads on your site is a really bad idea. Trying to make money off the visitors of your website will decrease the chance that they will buy computer products - ads are annoying. I think the nett profit of the ads will be minimal, if not negative.

But if you still want it, here's a quick and dirty fix, assuming the ads are some 400px wide: wrap an absolute positioned div around it:


<div style="width:400px; height:100px; position:absolute; left:50%; margin-left:-200px">here goes the script without <center> tags or []</div>

huntsman
11-22-2011, 03:59 PM
thank you very much. Il give that a try.

And yes i totally agree with you thats why im keeping the ads to minimal. I think i will only have 2 ads for now.

one on the top and the side one. The little one on the bottom i will remove and put a facebook like button on there.

Problem is that I dont want to put any more ads in my side bar is it takes up room it it stretches the page down, which it makes it look stupid because the post squares stay in the same place. Then what i have is a giant free space on the bottom.

Im thinking if i put a facebook like button on the bottom there will still be some space left in the middle. what im planning on doing is getting affiliate from amazon and just post some products for sale. This will take me another few days to figure out how to implant it lol.

This way the page will be nicely filled up, with out any gaps.

huntsman
11-22-2011, 04:09 PM
hmm its not working for me. Seems like all the code does is to align it center or move it to the right or left. But how do i move it down ? I played around with the code changing the numbers but none of it made it move down. Any ideas ?

huntsman
11-22-2011, 04:28 PM
hey actually guys if figured it out. Thanks for the code, the only thing that i had to change was margin-left to margin-top.

thank you. I will be back if I have any more questions lol.

huntsman
11-23-2011, 10:11 PM
hey , any idea why my ads are a little of on different resolutions ? How can i fix this so that the ads display always in the same place whether is on a 1080p screen or a 1024x768 ? Whats the code that i would need to fix this ?

Because i can imagine it looks crappy if a add is off centered or overlapping something.

avijitdutta
11-24-2011, 05:23 AM
i don't know programming. i have more interest programing.
Click here (http://www.worldtradeavi.blogspot.com)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum