+ Reply to Thread
Results 1 to 3 of 3

Thread: Centering PHP output

  1. #1
    Full Member DKasler is on a distinguished road
    Join Date
    Jan 2004
    Location
    Brooklyn
    Posts
    8

    Centering PHP output

    Ok... heres what I have

    if (@include('/nfs/home/bayrid3/public_html/ads/phpadsnew.inc.php')) {
    if (!isset($phpAds_context)) $phpAds_context = array();
    $phpAds_raw = view_raw ('zone:1', 0, '', '', '0', $phpAds_context);
    }


    and the output which is banner comes from this:

    echo $phpAds_raw['html'];

    I want to center that banner on my page... any ideas ?

  2. #2
    Full Member dzone is on a distinguished road
    Join Date
    Dec 2003
    Posts
    75
    What about

    PHP Code:
    echo "<center>".$phpAds_raw['html']."</center>"
    or

    PHP Code:
    echo "<div align=center>".$phpAds_raw['html']."</div>"
    ?

  3. #3
    Full Member DKasler is on a distinguished road
    Join Date
    Jan 2004
    Location
    Brooklyn
    Posts
    8
    Yea... I actually ended up with this.

    PHP Code:
    echo '<center>' $phpAds_raw['html'] . '</center>'
    Thanks so much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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