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>";
Did you know?Explore Trending and Topic pages for more stories like this.
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
Disable Scrollbar in TableControl
Hello everbody,
please can anybody help me - outherwise i'm going to become desperate :P<
Hyperlink is adding an extra gap to variable
Hi, here's my problem..
I have a php generated page with a hyperlink which opens in a new win
Deleted Delivery but material wont return
We deleted a delivery but the material its still pending.
We made a reverse goods movemen
PHP doesn't send my mail
Hi all, I found this and used it to send mail. Simple contact form with some required fields. The va
Best way to check for end of a record and send it back to the first record
I'm hoping someone can help me out and explain the best way to accomplish this.
What I'm doin
random generation
hi
i need help with generating this
numbers from 1-12
i want to generate in ran
PHP and Javascript
Hello Everyone,
I have a page that needs a javascript code to be written between PHP code but
Table control is disappearing from Screen
Hi Experts,
I have a screen with multiple table control(TC). Each table control has two c
PHP IMAGE UPLOAD SCRIPT
Hi for the last week i have been looking for scripts that will upload a photo to a certain folder wh
problem with sql querry in php script
Hello guys,
What I want to do is I want to read out a csv file and then but te conent ot the