Centering my Ads.

Discussion in 'Blogging' started by Ratchet, Oct 2, 2008.

  1. #1
    I have a php file called ads.php

    Went i put my add code in, It was like this.

    [​IMG]
    [​IMG]

    So, how do i center it?

    The PHP file.

    <!-- Begin BidVertiser code -->

    <SCRIPT LANGUAGE="JavaScript1.1" SRC="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=173810&bid=421214" type="text/javascript"></SCRIPT>

    <noscript><a href="http://www.bidvertiser.com/bdv/BidVertiser/bdv_advertiser.dbm">pay per click advertising</a></noscript>

    <!-- End BidVertiser code -->

    How can i make it go in the center of the rectangle?
     
    Ratchet, Oct 2, 2008 IP
  2. craiger22

    craiger22 Well-Known Member

    Messages:
    1,472
    Likes Received:
    99
    Best Answers:
    0
    Trophy Points:
    170
    #2
    YOu will need to edit your css file to move the ad.

    *EDIT*

    I found your css file by looking in your signature. Give the following code a shot, i am curious to see if it does what I think it will :)

    
    <!-- ^^^^^^^^^^^^^^ code for advertisements ^^^^^^^^^^^^^^ -->
    <div class="box">
    <h2>Sponsored Ads</h2>
    <div class="ads">
    <a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/adsample.gif" alt="Advertisement" /></a>
    <div class="clear"></div>
    </div>
    </div>
    <!-- ^^^^^^^^^^^^^^ code for advertisements ^^^^^^^^^^^^^^ -->
    
    Code (markup):
    The code you are using will work for 3 125x125 blocks, but not for the 468x60 banner. Hopefully this new code will work better for you. It may still need some css tweaking though.
     
    craiger22, Oct 2, 2008 IP
  3. Ratchet

    Ratchet Peon

    Messages:
    385
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That code removed 2 box's and didn't move banners.

    I put the banner in about.php Can i move that banner to the middle of the grey box?
     
    Ratchet, Oct 2, 2008 IP
  4. craiger22

    craiger22 Well-Known Member

    Messages:
    1,472
    Likes Received:
    99
    Best Answers:
    0
    Trophy Points:
    170
    #4
    Ok, i think i see now. The code you posted is for your ads in the sidebar, not the header.

    Could you please post the code from the file where you have posted the bidvertiser ad ;)
     
    craiger22, Oct 2, 2008 IP
  5. Ratchet

    Ratchet Peon

    Messages:
    385
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    <!-- Begin BidVertiser code -->

    <SCRIPT LANGUAGE="JavaScript1.1" SRC="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=173810&bid=421214" type="text/javascript"></SCRIPT>

    <noscript><a href="http://www.bidvertiser.com/bdv/BidVertiser/bdv_advertiser.dbm">pay per click advertising</a></noscript>

    <!-- End BidVertiser code -->

    Thats the code.

    Its in about.php
     
    Ratchet, Oct 2, 2008 IP
  6. craiger22

    craiger22 Well-Known Member

    Messages:
    1,472
    Likes Received:
    99
    Best Answers:
    0
    Trophy Points:
    170
    #6
    Is that al the code you have in about.php?
     
    craiger22, Oct 3, 2008 IP
  7. cyb3ronin

    cyb3ronin Guest

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    you could customize the position with css editor.
    I'm using CSSEdit in my mac and it very easy to use for me as newbie in programming (show real time changes).
    just try change code and see the different ads position.

    on Vista, maybe you could googling about CSSVista
     
    cyb3ronin, Oct 4, 2008 IP