<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>擬似クラス(1)</title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
.nav {
font-size: 0.875em;
font-family: Meiryo, "メイリオ", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴシック Pro W3", Osaka, sans-serif;
line-height: 1.8;
width: 200px;
height: auto;
margin: 50px 0 0 50px;
}
.nav ul {
list-style-type: none;
border-top: 1px solid #c3c3c3;
background-color: #f3f3f3;
}
.nav li a {
display: block;
width: auto;
height: auto;
padding: 10px;
border-bottom: 1px solid #c3c3c3;
}
.nav a:link, .nav a:visited {
color: #000;
text-decoration: none;
}
.nav a:hover {
color: coral;
}
</style>
</head>
<body>
<div class="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>