View Single Post
Old 11-15-2012, 04:34 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello Nicholas23,
Look at a demo I have of a simple CSS dropdown menu.

Look at your menu based on that example -
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
html, body {
	margin: 0;
	background: #fc6;
}
#navigation {
	width: 1000px;
	margin: 50px auto;
	padding: 0 0 400px;
	background: #ccc;
}
ul {
	margin: 0;
	padding: 0;
	background: #333;
}
	ul li {
		padding: 0 10px;
		display: inline-block;
		position: relative;
		list-style: none;
		font-size: 24px;
		color: #fff;
	}
	ul li a {
		display: block;
		color: #fff;
		text-decoration: none;
	}
	ul li:hover {color: #cf0;}
		ul ul {
			position: absolute;
			top: 26px;
			left: 0;
			visibility: hidden;
			background: #666666;
		}
		ul li:hover ul {visibility: visible;}
		ul ul a { color: #ccc; }
</style>
</head>
<body>
    <div id="navigation">
        <ul>
            <li><a href="index.html">HOME</a></li>
            <li><a href="aboutus.html">ABOUT US</a></li>
            <li><a href="courses.html">COURSES</a></li>
                <li>OTHER SERVICES
                    <ul>
                        <li><a href="#">SUB MENU 1</a></li>
                        <li><a href="#">SUB MENU 2</a></li>
                    </ul>
                </li>
            <li><a href="gallery">GALLERY</a></li>
            <li><a href="faq.html">FAQ</a></li>
            <li><a href="contactus.html">CONTACT US</a></li>
    	</ul>
    <!--end navigation--></div>
</body>
</html>
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

Last edited by Excavator; 11-15-2012 at 04:51 PM..
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
Nicholas23 (11-16-2012)