私は自分のナビをスタイリングしています。私はAboutとActionsを左に配置する必要があります。しかし、電話、ユーザー名、現金は右に揃っていた。どうすればこれを達成できますか?スタイリング時に参照を整列する方法html css nav?
.header {
\t margin: 0;
\t text-align: left;
\t color: white;
}
.my-header{
\t background-color: #003399;
}
.header li, form { display: inline; }
.header-normal li a{
\t text-decoration: none;
\t padding-right: 10px;
\t padding-left: 5px;
\t color: white;
\t font-size: 14pt;
\t font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}
.normal li a:hover{
\t color: #ff6699;
}
<!DOCTYPE html>
<html>
<head>
\t <link rel="stylesheet" type="text/css" href="menu_laba3.css">
</head>
<body>
\t <div class="my-header">
\t \t <ul class="header-normal header">
\t \t \t <li><a href="#">About</a></li>
\t \t \t <li><a href="#">Actions</a></li>
\t \t \t <li> Telephone: +375293326369 </li>
\t \t \t \t <li><a href="#"> username </a> </li>
\t \t \t \t <li> 500$ </li>
\t \t \t
\t \t </ul>
\t </div>
</body>
</html>
'float'プロパティを追加してみてください – Advaith