Hello all! I have the following code for a drop down menu, I need some help now to make the hover link to have an arrow bellow the blue box, and the active link to look the same.
HTML:
<ul>
<li><a href="<?php echo url('/'); ?>">Home</a></li>
<li><a href="<?php echo url('/about'); ?>">About</a></li>
<li>
<a href="">Operations</a>
<ul>
<li><a href="<?php echo url('/acars') ?>">Live Map</a></li>
<li><a href="">Login</a></li>
<li><a href="">Register</a></li>
<li><a href="">Profile</a></li>
</ul>
</li>
<li><a href="<?php echo url('/forum') ?>">Forum</a></li>
<li><a href="<?php echo url('/contact') ?>">Contact</a></li>
</ul>
CSS:
ul {
text-align: left;
display: inline;
list-style: none;
z-index:1000;
}
ul li a {
color:#6F6F6F;
z-index:1000;
}
ul li {
font: bold 12px/18px sans-serif;
display: inline-block;
position: relative;
padding: 10px 15px;
background: #eeeeee;
cursor: pointer;
-webkit-transition: all 0.2s;
-moz-transition: all 0.2s;
-ms-transition: all 0.2s;
-o-transition: all 0.2s;
transition: all 0.2s;
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
border-style: solid;
border-width: 2px;
border-color:#54add7;
z-index:1000;
}
ul li:hover {
background: #6ec3ed;
color: #eeeeee;
z-index:1000;
}
ul li ul {
padding: 0;
position: absolute;
top: 48px;
left: 0;
width: 150px;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
display: none;
opacity: 0;
visibility: hidden;
-webkit-transiton: opacity 0.2s;
-moz-transition: opacity 0.2s;
-ms-transition: opacity 0.2s;
-o-transition: opacity 0.2s;
-transition: opacity 0.2s;
z-index:1000;
}
ul li ul li {
background: #fff;
display: block;
color: #848484;
text-shadow: 0 -1px 0 #000;
-webkit-border-radius: 0 0 0 0;
border-radius: 0 0 0 0;
border-style: solid;
border-width: 0px;
border-color:#54add7;
z-index:1000;
margin-top:-8px;
}
ul li ul li:hover {
background: #6ec3ed;
}
ul li:hover ul {
display: block;
opacity: 1;
visibility: visible;
-webkit-border-radius: 0 0 0 0;
border-radius: 0 0 0 0;
z-index:1000;
}
See the image to have a more clear view: http://s7.postimg.org/uckajf4sr/menu_problem.jpg
Thank you very much!
Dimitris