I'm facing an issue with my menu where the last item "Apps" is supposed to stay in place instead of sliding down.
I'm looking for a CSS-only solution to solve this problem.
Here is my current CSS code:
div.menu{
display: block;
float: left;
width: 10%;
position: absolute;
height: 20%;
min-height: 20%;
margin-right: 0;
margin-left: 0;
margin-top: 5%;
text-align: center;
color: #428bca;
z-index: 0;
}
div.menu ul{
list-style-type: none;
margin-right: 10px;
margin-left: 10px;
padding-left: 0;
padding-right: 0;
}
div.menu ul li{
background-color: #FFF;
width: 100%;
margin-top: 1px;
position: relative;
}
div.menu ul li ul {
display: none;
left:125px;
top:-20px;
float: right;
width: inherit;
height: inherit;
z-index: 1;
position: relative;
}
div.menu ul li ul li {
background: #fff;
}
div.menu ul li:hover ul {
display: block;
}
div.menu li:hover{
background-color: #ddd;
}
I'm feeling quite confused at the moment and would greatly appreciate any assistance. I'm using CodeIgniter for this project.