あなたは簡単にそうようなあなたのフッターIDの内側(左右)二つの領域に対応するために、すべてを書き換えることができます
:
HTML
<html>
<head>
<link href="test.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="footer" style="position:absolute;bottom:0;">
<div class="left">
<a href="#">About Us</a>
<a href="#">Accessibility</a>
<a href="#">Recruiters</a>
<a href="#">Contact Us</a>
</div>
<div class="right">
<a href="#">About Us</a>
<a href="#">Accessibility</a>
<a href="#">Recruiters</a>
<a href="#">Contact Us</a>
</div>
</div>
</body>
</html>
CSS
body {
margin: 0;
padding: 0;
}
#footer {
background: #FFFFFF;
border: 1px solid;
color: #e6e6e6;
height: 30px;
width: 960px;
position:absolute;
float: left;
margin: 0px 0px 0px 0px;
padding:0;
}
#footer a {
font: 13px helvetica;
color: #0040FF;
padding: 8px 12px 3px 3px;
}
#footer a:hover {
font: 13px helvetica;
color: #0040FF;
padding: 8px 3px 3px 3px;
text-decoration: underline;
}
.right {
float:right;
}
.left {
float:left;
}
デモ
http://jsfiddle.net/8grSk/8/
-
を編集するには、より良いあなたのホバー状態に対処するためにフィドルを変更しました。
'footer1'から' position:absolute; 'を削除し、' float:right; 'を使用してください。 –
divの代わりにリストを使うと良いでしょう –