ナビゲーション縦(2)

【CSS13】

  • 以下の画像と同じように表示させるCSSを記述しなさい
  • 擬似クラスで指定


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<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>ナビゲーション縦(2)</title>
<style type="text/css">
<!--
* {
  margin: 0;
  padding: 0;
}
body{
  font-family:
    "ヒラギノ角ゴ Pro W3",
    "Hiragino Kaku Gothic Pro",
    "Hiragino Kaku Gothic Pro W3",
    "メイリオ",
    Meiryo,
    Osaka,
    "MS Pゴシック",
    "MS PGothic",
    sans-serif;
}
#nav {
  font-size: 0.875em;
  width: 230px;
  height: auto;
  margin: 50px auto;
}
#nav ul {
  list-style-type: none;
  border-top: 1px solid #C7C7C7;
  background-color: #F3F3F3;
}
#nav li a {
  width: auto;
  height: auto;
  padding: 8px 20px;
  display: block;
  border-bottom: 1px solid #C7C7C7;
}
#nav a:link, #nav a:visited {
  color: #000;
  text-decoration: none;
}
#nav a:hover {
  color: #F78400;
}
-->
</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>