I'm going straight to the point here. what I want is when I hover to services link I want the dropdown content to show... I'm not that good when it comes to css tricks so please bear with me..
<div id="Navigation">
<div class="container">
<div class="row">
<div class="col-md-12">
<div id="nav-container">
<ul>
<li><a href= "javacsript:(0)">Home</a></li>
<li><a href= "javacsript:(0)">Services <i class="caret"></i></a></li>
<li><a href= "javacsript:(0)">Categories <i class="caret"></i></a></li>
<li><a href= "javacsript:(0)">Shop <i class="caret"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
//I want to show this one when I hover on services
<div class="row dropdown-content">
<div class="col-md-12">
<p>Hello World!</p>
</div>
</div>
so here's what I have tried so far.
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 100%;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
padding: 12px 16px;
z-index: 5;
border: 1px solid #c6c6c6;
}
#nav-container ul:hover .dropdown-content {
display: block;
}
it'll only show when I put the div inside the <ul>
element...
thanks in advance...
I want to achieve this using css only....