Here is my code so far:
<?php
echo '
<nav class="floatfix">
<ul>
<li><a href="index.php">Home</a></li>
<ul>
<li><a href="index2.php">£3.99 T-Shirts</a></li>
<li><a href="index3.php">£4.99 T-Shirts</a></li>
</ul>
<li><a href="login.php">Log In</a></li>
<li><a href="#">Account</a></li>
<li><a href="feedback.php">Feedback</a></li>
<li><a href="#">Checkout</a></li>
<li><a href="aboutus.php">About Us</a></li>
</ul>
</nav>
';
?>
Here is my CSS
/* =float clearing
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
.floatfix {
display: block;
height: 1%;
text-transform: uppercase;
}
.floatfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
How can I get the £3.99 Shirts & £4.99 Shirts as a drop down menu beneath the ‘Home’ on the navigation bar.
Thankyou very much
Not even going into the CSS you need to enclose the secondary UL in the Home LI like below:
CSS stolen from a quick tutorial:
Demo: http://jsfiddle.net/calder12/7j6H9/