<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>【課題21】横並びメニュー</title>
<style type="text/css" media="screen, print">
#nav {
font-size: 0.8em;
width: 760px;
height: 40px;
margin: 50px 0 0 50px;
border-top: solid 1px #AAA;
border-bottom: solid 1px #AAA;
border-left: solid 1px #AAA;
}
#nav ul {
margin: 0;
padding: 0;
list-style-type: none;
}
#nav li {
float: left;
}
#nav li a {
color: #000;
line-height: 40px;
text-align: center;
text-decoration: none;
display: block;
width: 151px;
background-image: url(images/btn_bg.jpg);
background-repeat: repeat-x;
border-right: solid 1px #AAA;
}
#nav li a:hover {
background-position: 0 -50px;
}
</style>
</head>
<body>
<div id="nav">
<ul>
<li><a href="##">メニューのリンク1</a></li>
<li><a href="#">メニューのリンク2</a></li>
<li><a href="#">メニューのリンク3</a></li>
<li><a href="#">メニューのリンク4</a></li>
<li><a href="#">メニューのリンク5</a></li>
</ul>
</div>
</body>
</html>