0

テキストを含む div があり、テーブルを作成して処理することなく、テキストの一部を div の右側に移動したいと考えています。これが私が持っているものであり、役に立たない:

    <div style="height:50px;background-color:#06276F;color:#FFF;padding:5px;">
    <img align="left" height="50px" width="50px" style="margin-right: 10px;"
        src="<?php echo PilotData::getPilotAvatar($pilotid);?>" />
    <strong>Name: </strong> <?php echo Auth::$userinfo->firstname . ' ' . Auth::$userinfo->lastname;?>
    <span style="text-align:right;"><strong>Total Flights: </strong><?php echo Auth::$userinfo->totalflights?></span><br />
    <strong>Pilot ID: </strong> <?php echo $pilotid ; ?>
    <span style="text-align:right;"><strong>Total Hours: </strong><?php echo Auth::$userinfo->totalhours;?></span><br />
    <strong>Rank: </strong><?php echo Auth::$userinfo->rank;?>
    <span style="text-align:right;"><strong>Hub: </strong><?php echo Auth::$userinfo->hub;?></span><br />
    </div>

これは次のようになります。

ここに画像の説明を入力

4

1 に答える 1