Vertical Alligning - Not working in 1 cell?
Posted on
16th Feb 2014 07:03 pm by
admin
<?php
echo "<table id="valign" width="60%" style="border:1px solid #EEE;">";
echo "<tr><td colspan="3" style="border:1px solid #CCC;background-color:#DDD;color:#444;"><center>Heroes of BuzzWorld<center></td></tr>";
echo "<tr><td style="border:1px solid #D5D5D5;background-color:#E5E5E5;color:#555;"><center>Avatar<center></td><td style="border:1px solid #D5D5D5;background-color:#E5E5E5;color:#555;"><center>Username<center></td><td style="border:1px solid #D5D5D5;background-color:#E5E5E5;color:#555;"><center>Lv.<center></td></tr>";
$sqluy = "SELECT * FROM `users` ORDER BY `pet_level` DESC,`kills` DESC LIMIT 0,15";
$resuy = mysql_query($sqluy) or die(mysql_error());
while($luser = mysql_fetch_assoc($resuy)){
echo "<tr><td style="border:1px solid #DDD;background-color:#EEE;color:#666;"><center><img src="./avatar.php?id=".$luser['id'].""></center></td>";
echo "<td vertical-align="middle" valign="middle" style="border:1px solid #DDD;background-color:#EEE;color:#666;"><center><a valign="middle" href="./index.php?page=forum&act=profile&id=".$luser['id']."">";
echo $luser['username'];
echo "</a>
Kills: ".$luser['kills']."</center></td>";
echo "<td width="75" style="border:1px solid #DDD;background-color:#EEE;color:#666;"><center>".$luser['pet_level']."</center></td>";
echo "</tr>";
}
echo "</table>";
?>
For some reason, te cell which has $luser['username'] in, is vertically aligning to the TOP, not the MIDDLE, and I don't have a clue why.
(It's only in IE, and for some reason.. After I upload the file and view it it's fine, but when I go to view it a few seconds later, it's broken?)
link: http:/www.my-buzz.com/index.php?page=rpg
-- The only problem is you need to be logged in..
I'm also using
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
No comments posted yet
Your Answer:
Login to answer
220
46
Other forums
classic dynpro : hide area and auto adjust hights
Hi,
I want to develop a similar user interface as is used in standard transaction MIGO.
problem with php server update from mid 2009
Hi,
I have this navigation menu on 2 websites which used to work just fine. After a recent up
MSSQL/PHP
I am tryint to setup a webapplication developed in PHP, Apache2.0 and SQLServer2000 as backend which
square instead of number
Hello
I do not know why but this code seems to work fine only in my xampp local insallation but n
Trouble checking SESSION cookie
I am trying to use $_SESSION cookies to verify admin privileges .
I don't understand why this is
Printer configuration
Hi All,
Suppose one of the user deleted the printer settings unfortunatly ,then what is the pro
Prevent PHP mail( ) from appending hostname to from address
Hey guys,
I want to be able to send texts to phones via email (since each phone has their own
MySQL noob question
hi guys
I have a simple mysql table set up, along the lines of
Col 1 - Col 2 - Date_l
Display a default image
I am trying to display generic image for items that don't have one, but I can't get it to display.
Give me all your tricks for minimizing jar file size
Hi, I'm coming close to releasing my J2ME game... I am kicking up against the 64k size barrier w