<div class="cp_navi01">
<ul>
<li><a href="#home" class="active">Home</a></li>
<li><a href="#news">News</a></li>
<li><a href="#contact">Contact</a></li>
<li><a href="#about">About</a></li>
</ul>
</div>
.cp_navi01 ul {
width: 200px;/*メニューの幅*/
margin: 0;
padding: 0;
list-style-type: none;
background-color: #eeeeee;
}
.cp_navi01 li a {
display: block;
padding: 8px 16px;
text-decoration: none;
color: #000000;
transition: all .3s;
}
.cp_navi01 li {
text-align: center;
}
.cp_navi01 li:last-child {
border-bottom: none;
}
.cp_navi01 li a.active {
color: #ffffff;
background-color: #da3c41;
}
.cp_navi01 li a:hover:not(.active) {
color: #ffffff;
background-color: #1b2538;
}