Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to move my head banner ad ?

    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.

  • #2
    Regular Coder
    Join Date
    Sep 2011
    Posts
    330
    Thanks
    3
    Thanked 35 Times in 35 Posts
    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:
    Code:
    <div style="width:400px; height:100px; position:absolute; left:50%; margin-left:-200px">here goes the script without <center> tags or []</div>
    Frank

    How to: Target IE in, Position in, Center in, Create a Fixed ('Sticky') Footer with, and Create a Drop-Down/Fly-Out Menu with CSS: Website Laten Maken Amsterdam.

  • #3
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 ?

  • #5
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #6
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #7
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i don't know programming. i have more interest programing.
    Click here


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •