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
Downloading file (Headers)
I'm trying to make users download a file, but they must wait 60 seconds before it begins.
But
php mail form text wont appear / javascript included
Guys/gals...
I am running into a problem whereby I have a great piece of javascript code that
Can I call a class inside a function?
I have a class written in another file that handles my image resizing.
Can I do this (php say
Could Someone Please Debug This?
I was wondering if someone could debug this script for me. I realize it's not the tidest script (and
getting Vars to pass to next page.
Hello all,
I have a confusing situation on my hands, i am a member of a gaming community and we
PayPal Redirect Issue
When I have my paypal button set so that is redirects to http://empiremarketing.ca/order.php,it work
Loop Through Date Range
Hi guys,
I have date range as parameter like 01/JAN/2009 TO 16/JAN/2009 now i want to loop thro
help with image upload code
Hello,
right now this code I have resizes images and then places them into the uploads folder
PHP & MS Access - Line Break
Hey Guys!
I'm pulling records from an MS Access database and listing them using PHP and I'm r
using explode() to fill in checkboxes
Hi
I have a field stored in a table that contains regions in the UK separated by commas. Ther