I have a unique way I want this list to function:
- When clicked, it should reveal a vertical list.
- If an item in the vertical list is clicked, it should display horizontally with more information about that item.
- All items should be hidden until either Test 1-4 or one of the submenus Test 1.1 - 1.5 is clicked.
Here's how I styled it with CSS & HTML:
<style>
#navcontainer
{
margin-left: auto;
margin-right: auto;
margin-bottom: 40px;
border-top: 1px solid #999;
z-index: 1;
}
#navcontainer ul
{
list-style-type: none;
text-align: center;
margin-top: -8px;
padding: 0;
position: relative;
z-index: 2;
}
#navcontainer li
{
display: inline;
text-align: center;
margin: 0 5px;
}
#navcontainer li a
{
padding: 1px 7px;
color: #666;
background-color: #fff;
border: 1px solid #ccc;
text-decoration: none;
}
#navcontainer li a:hover
{
color: #000;
border: 1px solid #666;
border-top: 2px solid #666;
border-bottom: 2px solid #666;
}
#navcontainer li a#current
{
color: #000;
border: 1px solid #666;
border-top: 2px solid #666;
border-bottom: 2px solid #666;
}
</style>
<div id="navcontainer">
<ul id="navlist">
<li><a href="#" id="current">Test1</a></li>
<li><a href="#">Test2</a></li>
<li><a href="#">Test3</a></li>
<li><a href="#">Test4</a></li>
</ul>
</div>
I've attempted to use jQuery and "TextShower" without success (I only know basic HTML).
Below is an image illustrating my concept, hoping someone can help me make it work as intended.