Sorry for the repetition, but I haven't been able to find a solution to my problem yet, so here I am asking again. I am still getting the hang of html5 and css3, and while I've managed so far, I'm stuck now.
I want to turn one of the options in my navigation menu into a drop-down menu. I've tried multiple times using tips from various sources, but I'm encountering issues.
Below is my CSS code for the Nav menu...
/* Site Nav */
#site-nav
{
position: absolute;
top: 0;
right: 50px;
font-family: 'Open Sans Condensed', sans-serif;
text-align: right;
}
#site-nav ul
{
list-style: none;
overflow: hidden;
}
#site-nav ul li
{
display: block;
float: left;
text-decoration: none;
font-size: 1.2em;
height: 90px;
line-height: 110px;
margin: 0 0 0 1.75em;
}
#site-nav ul li a
{
color: #000;
text-decoration: none;
outline: 0;
}
#site-nav ul li a:hover
{
color: #fff;
}
#site-nav ul li.current_page_item
{
background: url('images/nav-arrow.png') center 77px no-repeat;
}
#site-nav ul li.current_page_item a
{
color: #662d91;
}
Here is the HTML for my menu...
<ul>
<li><a href="index.html">Homepage</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="products.html">Products</a></li>
<li><a href="bullion.html">Bullion</a></li>
<li class="current_page_item"><a href="#.html">Contact Us</a></li>
</ul>
If it's possible to achieve this with just HTML5 and CSS3, that would be perfect. But I'm open to exploring the JavaScript option if necessary.
Thank you in advance for any guidance - your help means a lot to me.
EDIT 21/03/2013...
I attempted to use the code provided below, and you can see the progress I've made in this fiddle: http://jsfiddle.net/2rgSP/1/ I'm facing two issues: firstly, the links are being pushed off the edge of the website, and secondly, the drop-down menu falls behind the main wrapper. There seems to be some conflicting CSS causing these problems, but as a complete beginner, I'm clueless on how to resolve them. Hopefully someone can identify where I'm going wrong.
Thanks,
Lee