我是 HTML/CSS 新手,需要一些关于文本对齐的帮助。文本是链接,我想将两个链接对齐到页面左侧,一个链接到右侧。任何人都可以帮忙吗?这是我的代码
BACK 和 HOME 按钮是左对齐,MISC 是右对齐
谢谢堆它让我发疯!
HTML **
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 5.0//EN">
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/portfolio.css">
</head>
<body>
<div class="menu">
<ul>
<a href="index.html">BACK</a>
<a href="index.html">HOME</a>
<a href="index.html">MISC</a>
</ul>
</div>
</body>
</html>
CSS **
body
{
background-color: #ffffff;
}
.menu
{
font-family:"HelveticaNeue-Light", "Arial";
font-size: 75%;
color: #1f4462;
text-align:left;
margin-left: -36px;
margin-top: -3px;
font-style: normal;
letter-spacing: 1px;
word-spacing: 3px;
}
a:link
{
color:#1f4462;
text-decoration:none;
}
a:visited
{
color:#1f4462;
text-decoration:none;
}
a:hover
{
color:#1f4462;
text-decoration:none;
}
a:active
{
color:#1f4462;
text-decoration:none;
}