maxelcat
Technical User
- Oct 19, 2006
- 79
Hi
I am trying to create a hozirontal menu.
Between the words I want little, vertical, bars. I have been doing this by adding a border on the LHS of the element. (I don't know if this is the best way to achieve the effect.)
When you roll over the menu items I would like the whole space between the little bars to change colour.
IN FF only the link changes colour. IN IE6/7 the colour changes goes all the way to the RHS of the element.
I have been on this now for a few hours, and its driving me nuts - can't get consistent behaviour.
PLEASE HELP
or this code.
Many thanks
"I love deadlines - I love the noise they make as they go wishing past" (not mine of course, but very ture...0
I am trying to create a hozirontal menu.
Between the words I want little, vertical, bars. I have been doing this by adding a border on the LHS of the element. (I don't know if this is the best way to achieve the effect.)
When you roll over the menu items I would like the whole space between the little bars to change colour.
IN FF only the link changes colour. IN IE6/7 the colour changes goes all the way to the RHS of the element.
I have been on this now for a few hours, and its driving me nuts - can't get consistent behaviour.
PLEASE HELP
or this code.
Many thanks
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
#wrapper {
width:740px;
margin:0px auto;
border:1px solid black;
text-align:left;
}
#menuBar {
color: #CCCAAD;
font-size: 14px;
font-family: arial, Helvetica, sans-serif;
margin-left:0px;
margin-right:0px;
margin-top:53px;
position: relative;
top: 0px;
left: 0px;
/* right: 0px;*/
width:500px;
overflow: hidden;
/*vertical-align: middle;*/
border: solid 0px #000000;
background-color: #ffffff;
}
.menuHeader {
color: #000000;
text-decoration: none;
cursor: pointer;
margin:0px;
padding-right:15px;
padding-left:15px;
display: inline;
position: relative;
border-left:1px #000000 solid;
border-right:0px #000000 solid;
}
a:hover {
background-color:#3399FF;
}
-->
</style>
</head>
<body>
<div id="wrapper"><img src="images/maxelcat_logo.jpg" alt="h" width="230" height="126" class="imageright" />
<div id="menuBar">
<div id="navMenu1" class="menuHeader"><a href="#">Home</a></div>
<div id="navMenu2" class="menuHeader"><a href="#">Services</a></div>
<div id="navMenu3" class="menuHeader"><a href="#">Portfolio</a></div>
<div id="navMenu4" class="menuHeader"><a href="#">Customers</a></div>
<div id="navMenu5" class="menuHeader"><a href="#">Contact</a></div>
<div id="endBar" class="menuHeader"> </div>
</div>
<div class="clearer"> </div>
</div>
</body>
</html>
"I love deadlines - I love the noise they make as they go wishing past" (not mine of course, but very ture...0