Aligner des éléments à gauche et à droite
Bonjour,
J'ai un tableau avec des li et ul et je souhaiterai que le $data['room'] soit coller à droite.
Ou faire deux tableur (à gauche avec le nom et prénom et deuxième avec le room.
Pouvez-vous m'aider svpl ?
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| {
if ( $c == 0 )
{
echo '<div class="w3-container w3-cell w3-small" style="width:16.6%"><ul class="w3-ul ">';
echo '<li class="w3-padding-small w3-hover-blue w3-animate-zoom">'.$data['nom'].' '.$data['prenom'].'<b>'.$data['room'].'</b></li>';
};
if ( $c > 0 and $c < 24 )
{
echo '<li class="w3-padding-small w3-hover-blue">'.$data['nom'].' '.$data['prenom'].'<b> '.$data['room'].' </b></li>';
};
if ( $c == 24 )
{
echo '<li class="w3-padding-small"></li>';
echo '</ul></div>';
echo '<div class="w3-container w3-cell w3-small" style="width:16.6%"><ul class="w3-ul">';
echo '<li class="w3-padding-small w3-hover-blue">'.$data['nom'].' '.$data['prenom'].'<b> <w3-left-align>' .$data['room'].' </b></li>';
}; |