Glad a client guy saved the day! I'm terrible with CSS. . .
Probably right about the display and width, these are in a div block anyway.
Looks like this is all HTML/CSS based, so I'm just going to move the thread there.
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php