Hey there, I'm currently working on creating a menu using the absolute position CSS rule for each list item. Unfortunately, setting display: inline-block
for the parent doesn't seem to be doing the trick. Here's a snippet of the markup I'm using.
.menu-items{
}
.main-menu{
position: relative;
list-style:none;
}
.main-menu li {
position: absolute;
float:left;
}
.main-menu li a{
font-size: 12px;
color: rgba(1, 1, 1, 1);
}
.main-menu li a:hover{
font-size: 21px;
color: rgba(1, 1, 1, 1);
}
<div class="row">
<div class="menu-items">
<ul class="main-menu">
<li><a href="index.html">index</a></li>
<li><a href="shop.html">shop</a></li>
<li><a href="about.html">about</a></li>
<li><a href="projects.html">projects</a></li>
<li><a href="contacts.html">contacts</a></li>
</ul>
</div>
</div>