RevCMS PHP Error

Kristopher

Photographer
Dec 25, 2010
803
68
FIXED THE PHP ERROR, Just having issues centering it.
<style type="text/css">
#badge-back { position: absolute; left: 90px; top: 85px; }#new-personal-info .enter-hotel-btn { position: absolute; top: -10px; right: 20px; padding: 28px 0; background: transparent url(); !important; }
#new-personal-info .enter-hotel-btn { position: absolute; top: -10px; right: 20px; padding: 28px 0; background: transparent url(); !important; }
#badge-sq{display:inline-block; margin-left:4px;margin-right:4px;height:45px;width:45px;background-color:silver;opacity:.8;border-radius:3px;border:1px solid #181818;overflow:hidden;margin-bottom:10px}
</style>
<div class="habblet-container ">
<div id="new-personal-info" style="background-image:url({url}/app/tpl/skins/Habbo/images/personal_info/hotel_views/htlview_us.png)">
<div id="badge-back">
<?php
$getBadges = mysql_query("SELECT * FROM `users_badges` WHERE `user_id` = '" . $_SESSION['user']['id'] . "' AND `badge_slot` >= '1' ORDER BY `badge_slot` DESC LIMIT 5");if (mysql_num_rows($getBadges) == 0)
echo '<div id="badge-sq">You do not have any badges!</div>';
else
{
while ($badgeInfo = mysql_fetch_array($getBadges))
{
echo '<div id="badge-sq"><img style="display:block;margin:auto;" src="{url}/game/c_images/album1584/'.$badgeInfo['badge_id'].'.gif" style="display:inline;" draggable="false"></div>';
}
}


?> </div>
i26cqcoVfbH1.png

Should be centered in the grey box. I've tried multiple things and they just don't seem to line up
 
Last edited:

Users who are viewing this thread

Top