Jump to content

[SOLVED] Centering a script


Recommended Posts

I have a script for a gaming site that lists free agents looking for a team to play on.  My free agents are showing up but not centered.  I cant seem to figure out how to center them.  I would also like it to be valigned to the top of the table.  Right now its in the middle.  Here is the code:

<div class='maincontentbg'>

<table align="center" valign="top" width="195px" border="0" cellspacing="3" cellpadding="0">


<td valign="top">

<div align='center'>

<div class="htopspace1">Latest Free Agents</div>


<table width="195px" height="105px" valign="top" align="center" bgcolor="#0e0e0e" cellspacing="0">



$latestagents = mysql_query("SELECT freeagents.id, gamename, game FROM freeagents LEFT JOIN ladders ON freeagents.ladder = ladders.id ORDER BY freeagents.id DESC LIMIT 0,6");













echo"<tr bgcolor='$config[altcolora]'><td background='$config[cellbgx2]'><a href='./freeagents.php?action=viewagent&agent=$freeagentsuser'><span style='color:#FFFFFF;'>$freeagentsgamename









How can I center the list of free agents and align it to the top?






Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.