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
Track downloads' status
Hello,
I need to make somehow, some system, to track whether downloads are completed or faile
Renaming a file that a user uploads to site?
My site allows for registered users to upload images to the site under their own gallery. Currently
Help building / using array
First - this is a cross-posting, if this is wrong I apologise! What started out as a MySQL query que
Need help with an email blocker for a guessbook
I am new with php and here is a simple guessbook page but I am being hit with spam from a group of t
How to generate a text file using php...?
Hi,
Can anyone give me code to generate a text file using php
Thanks in advance
Simple AND question
Hello,
I've got following code:
Code: if(strpos($row[13],"http://")
please, need help coding this voting for your favorite car polling system.
hi, my code needs a lot of work, but i want to be able to let users vote on their favorite car, upda
phpMailer will not connect using SMTP
I am trying to use phpMailer with smtp:
Code: [Select]$mailer = new PHPMailer();
$mailer-&
how to put the 0-100 numbers into 1.txt and 100-200 into 2.txt ?
how to put the 0-100 numbers into 1.txt and 100-200 into 2.txt and so on 200-300 into file 3.txt ?
Creating a custom API
I'm creating a site, and I need to create a basic API. Unfortunately I have no idea where to start.