• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

AAC [php] Need to narrow the space among the players. and an alignment code or something for experience code part

Jeyci

Banned User
Joined
May 6, 2023
Messages
289
Solutions
3
Reaction score
36
As title says i have this code, have edited it a bit, and I'm struggling to narrow the space among player outfits. Can somebody lend me a hand with this, please?

this is the code
Lua:
 echo '
                <div class="outfit">

                   <li style="margin: 8px 5px;"> <div style="position:relative; left:-28px; top:-28px;"><img src="' . $config['show_outfits']['imageServer'] . '?id=' . $player['looktype'] .
(isset($player['lookaddons']) ? '&addons=' . $player['lookaddons'] : '') .
'&head=' . (isset($player['lookhead']) ? $player['lookhead'] : '') .
'&body=' . (isset($player['lookbody']) ? $player['lookbody'] : '') .
'&legs=' . (isset($player['looklegs']) ? $player['looklegs'] : '') .
'&feet=' . (isset($player['lookfeet']) ? $player['lookfeet'] : '') . '" alt="img">
<div style="position:relative; left:31px; top:2px;"><a style="margin-right: 13px;" href="characterprofile.php?name=' . $player['name'] . '">' . $nam . '</a>
<span style="float: center;">'.coloured_value($player['experience']-$player['exphist_lastexp']).'</span></li>



                </div>
            ';
                        //echo '<span style="float: right;">' . coloured_value($player['experience'] - $player['exphist_lastexp']) . ' - Level ' . $player['level'] . '</span></li>';
                    }
                }
                ?>
            </ul>

this is how the code looks in website by now. need to strech the space between the players.




Untitled.png

also the experience column is not aligened as you cans ee. would be possible to do it ?
this is the whole code php : k5dfv - Ghostbin (https://paste.bingner.com/paste/k5dfv)
 
This line is only used to decrease or increase the margins as necessary, according to your preference.
<li style="margin: 4px 2px;">

PHP:
echo '<div class="outfit">
    <li style="margin: 4px 2px;">
        <div style="position:relative; left:-28px; top:-28px;">
            <img src="' . $config['show_outfits']['imageServer'] . '?id=' . $player['looktype'] .
                (isset($player['lookaddons']) ? '&addons=' . $player['lookaddons'] : '') .
                '&head=' . (isset($player['lookhead']) ? $player['lookhead'] : '') .
                '&body=' . (isset($player['lookbody']) ? $player['lookbody'] : '') .
                '&legs=' . (isset($player['looklegs']) ? $player['looklegs'] : '') .
                '&feet=' . (isset($player['lookfeet']) ? $player['lookfeet'] : '') . '" alt="img">
            <div style="position:relative; left:31px; top:2px;">
                <a style="margin-right: 10px;" href="characterprofile.php?name=' . $player['name'] . '">' . $nam . '</a>
                <span style="float: center;">' . coloured_value($player['experience'] - $player['exphist_lastexp']) . '</span>
            </div>
        </li>
    </div>';
 
Back
Top