423,516 Members | 2,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,516 IT Pros & Developers. It's quick & easy.

Drop down roll over menu is dreamweaver

P: 31
I am working on my website, and I am trying to make it so my menu bar is similar to the one on this website. I was told it requires css, but I am not sure how that works.

Can some provide me with a start, either code, or a very good tutorial website.

Thank you.
Sep 8 '07 #1
Share this Question
Share on Google+
3 Replies


drhowarddrfine
Expert 5K+
P: 7,435

P: 1
here is some code that might be useful for you to build a horizontal navigation as the one this site using HTML/CSS:
[html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Navigation Example</title>
<style type="text/css">
#nav_cont{
border: 1px solid #000000;
overflow: auto;
background-color: #990000;
text-align: center;
}

#nav_cont ul{
width: 100%;
padding-left: 10px;
margin-left: 0px;
margin: 0;
list-style-type: none;
font-family: Arial, Helvetica, sans-serif;
background-color: #990000;
text-align: center;
}


#nav_cont li{
float: left;
}

#nav_cont ul a{
display: block;
width: 160px;
padding: 5px;
background-color: #990000;
color: #CCCCCC;
text-decoration: none;
border-bottom: 5px solid #990000;}

#nav_cont ul a:hover{
background-color: #FF0000;
color: #FFFFFF;
text-decoration: none;
border-bottom: 5px solid #FFFFFF;}

</style>
</head>
<body>

<div id="nav_cont">
<ul id="nav_list">
<!-- here you'll have to change the title, the text to be displayed and add the links -->
<li><a href="#" title="Home">Home</a></li>
<li><a href="#" title="About us">About us</a></li>

<li><a href="#" title="Buying">Buying properties</a></li>
<li><a href="#" title="Selling">Selling properties</a></li>
<li><a href="#" title="Services">Our Services</a></li>
</ul>
</div>
</body>
</html>
[/html]
enjoy!
Sep 9 '07 #3

P: 1
Hi, im new to using dreamweaver but just wondered whether this process for horizontal drop downs work for vertical drop down menus aswell, if not how do they work?
Mar 10 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.