66 lines
1.1 KiB
CSS
66 lines
1.1 KiB
CSS
background: url(background.jpg) no-repeat center fixed;
|
|
background-size: cover;
|
|
|
|
ul {
|
|
border: 1px solid #555;
|
|
}
|
|
|
|
li {
|
|
text-align: center;
|
|
border-bottom: 1px solid #555;
|
|
}
|
|
|
|
li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
ul {
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 25%;
|
|
background-color: #f1f1f1;
|
|
height: 100%; /* Full height */
|
|
position: fixed; /* Make it stick, even on scroll */
|
|
overflow: auto; /* Enable scrolling if the sidenav has too much content */
|
|
}
|
|
li a {
|
|
display: block;
|
|
color: #000;
|
|
padding: 8px 16px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
li a.active {
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
}
|
|
|
|
li a:hover:not(.active) {
|
|
background-color: #555;
|
|
color: white;
|
|
}
|
|
<div style="margin-left:25%;padding:1px 16px;height:1000px;">
|
|
|
|
|
|
|
|
|
|
|
|
.dropdown {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.dropdown-content {
|
|
display: none;
|
|
position: absolute;
|
|
background-color: #f9f9f9;
|
|
min-width: 160px;
|
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.dropdown:hover .dropdown-content {
|
|
display: block;
|
|
}
|