www.webdeveloper.com
Results 1 to 2 of 2

Thread: banners aligned right

  1. #1
    Join Date
    Dec 2003
    Location
    UK
    Posts
    1,141

    banners aligned right

    Hey guys as you can see from my site:



    I set up a banner php script. Now i cant get them to align to the right side.

    I had to make a plugin in to be able to use a php include in vbulletin.

    Im not sure if its in the header i should be adding css or the script:

    <?php
    srand ((double) microtime( )*1000000);
    $numbanners = 2;
    $banner = rand(0,$numbanners);
    echo "<table class=maincats bgcolor=black align=right width=468><tr><td>";
    include ("/home/champleg/public_html/revolver/banners/$banner.html");
    echo "</td></tr></table>";
    ?>
    Is the width causing a problem and even if not does it need a value set?

    Cheers

  2. #2
    Join Date
    Dec 2008
    Posts
    79
    Hello!

    Try this:

    Old:
    HTML Code:
    <td align="right"><table bgcolor="black" align="right" width="468" class="maincats"><tbody><tr><td><a href="http://www.ldfifty.net"><img alt="LD Fifty" src="http://www.ldfifty.net/images/champsad.jpg" title="LD Fifty"/></a></td></tr></tbody></table></td>
    NEW:
    HTML Code:
    <td align="right" bgcolor="black" width="468" class="maincats"><a href="http://www.biorepublik.com/index.html?utm_source=champ01"><img alt="biorepublik" src="http://img.photobucket.com/albums/v297/sharkey182uk/biorepublik_banner.jpg" title="biorepublik"/></a></td>
    Use the new, of course. =D

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
  •  
HTML5 Development Center



Recent Articles