CSS15
【CSS15】
<!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>CSS15</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; width:180px; margin: 50px 0 0 50px; } #nav ul { list-style-type: none; border-top: solid 1px #ccc; border-right: solid 1px #ccc; border-left: solid 1px #ccc; } #nav li a { border-left: solid 10px #d5eaef; } #nav a:link, a:visited { color: #000; display: block; border-bottom: solid 1px #ccc; text-decoration: none; padding: 5px 10px; } #nav a:hover { color: #000; border-left: solid 10px #00b9f2; } #page_1 #nav li a.nav-1, #page_2 #nav li a.nav-2, #page_3 #nav li a.nav-3, #page_4 #nav li a.nav-4, #page_5 #nav li a.nav-5 { color: #000; border-left: solid 10px #0176ab; } </style> </head> <body id="page_2"> <div id="nav"> <ul> <li><a class ="nav-1" href="#">メニューのリンク 1</a></li> <li><a class ="nav-2" href="#">メニューのリンク 2</a></li> <li><a class ="nav-3" href="#">メニューのリンク 3</a></li> <li><a class ="nav-4" href="#">メニューのリンク 4</a></li> <li><a class ="nav-5" href="#">メニューのリンク 5</a></li> </ul> </div> </body> </html>