How to create beautiful vertical menu in html csss easiley ?

<!DOCTYPE html>
<html>

<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: sans-serif;
}

.vertical-menu {
width: 200px;
}

.vertical-menu a {
background-color: #a171ff;
color: white;
display: block;
padding: 12px;
text-decoration: none;
}

.vertical-menu a:hover {
background-color: #111086;
}

.vertical-menu a.active {
background-color: #262082;
color: white;
}
</style>
</head>

<body>

<h1>Beautiful Vertical Menu</h1>

<div class="vertical-menu">
<a href="#" class="active">Home</a>
<a href="#">Link 1</a>
<a href="#">Link 2</a>
<a href="#">Link 3</a>
<a href="#">Link 4</a>
</div>

</body>

</html>

Comments