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
trim function issues
Hi guys, total noob here...
So I've been tinkering around with a html and am using php to em
How do i do multi uploads?.
Hey i would like to do this : http://hosting.mrkrabz.net/
I've got the base down you can uplo
Error in query: Resource id #4??
hey guys, having a minor (i think) problem here that i havent been able to figure out. long story sh
PHP MySQL and DATE
Hi everyone
I have a databse and in one of the columns I have date values such as 2009-March-
WM transfer order: confirm different batch than proposed by system
Hi folks,
following scenario: we have a full WM with mixed batch numbers allowed in stora
Problem with coding MySQL query
I'm having heaps of trouble getting one of my PHP/MySQL queries to work for some reason (and the fun
Sending a hyperlink through mail
HI all,
I am sending a mail to outlook mailbox of a user using FM SO_NEW_DOCUMENT_ATT_S
Array help
Hello i got this code to fetch data from database but it is not working it displays
7
Array
Production Order Enterprise Service to Manufacturing Exctn Sys (MES) ???
Hello Experts,
In our current landscape SAP ECC 5.0 is integrated to MES system via PI 7.
limit string by words??
hello all,
I was wonder if there is a function to limit a string by the number of words inste