My css menu is being overlapped by my text at the bottom, this is causing the menu to be rendered useless as when you hover over it and initiate the drop down the text overlaps and the menu comes back up.
i would really appreciate the help with the coding. I am a absolute newbie. if there are changes to the code please could you tell me where to put them.
a link to the menu is at http://stock-trade-101.com/market-indicators/
css code
#cssmenu ul {
margin: 0;
padding: 0;
}
#cssmenu li {
margin: 0;
padding: 0;
}
#cssmenu a {
margin: 0;
padding: 0;
}
#cssmenu ul {
list-style: none;
}
#cssmenu a {
text-decoration: none;
}
#cssmenu {
height: 70px;
background-color: #232323;
box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.4);
width: auto;
}
#cssmenu > ul > li {
float: left;
margin-left: 15px;
position: relative;
}
#cssmenu > ul > li > a {
color: #a0a0a0;
font-family: Verdana, 'Lucida Grande';
font-size: 15px;
line-height: 70px;
padding: 15px 20px;
-webkit-transition: color .15s;
-moz-transition: color .15s;
-o-transition: color .15s;
transition: color .15s;
}
#cssmenu > ul > li > a:hover {
color: #ffffff;
}
#cssmenu > ul > li > ul {
opacity: 0;
visibility: hidden;
padding: 16px 0 20px 0;
background-color: #fafafa;
text-align: left;
position: absolute;
top: 55px;
left: 50%;
margin-left: -90px;
width: 180px;
-webkit-transition: all .3s .1s;
-moz-transition: all .3s .1s;
-o-transition: all .3s .1s;
transition: all .3s .1s;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
-moz-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
}
#cssmenu > ul > li:hover > ul {
opacity: 1;
top: 65px;
visibility: visible;
}
#cssmenu > ul > li > ul:before {
content: '';
display: block;
border-color: transparent transparent #fafafa transparent;
border-style: solid;
border-width: 10px;
position: absolute;
top: -20px;
left: 50%;
margin-left: -10px;
}
#cssmenu > ul ul > li {
position: relative;
}
#cssmenu ul ul a {
color: #323232;
font-family: Verdana, 'Lucida Grande';
font-size: 13px;
background-color: #fafafa;
padding: 5px 8px 7px 16px;
display: block;
-webkit-transition: background-color 0.1s;
-moz-transition: background-color 0.1s;
-o-transition: background-color 0.1s;
transition: background-color 0.1s;
}
#cssmenu ul ul a:hover {
background-color: #f0f0f0;
}
#cssmenu ul ul ul {
visibility: hidden;
opacity: 0;
position: absolute;
top: -16px;
left: 206px;
padding: 16px 0 20px 0;
background-color: #fafafa;
text-align: left;
width: 180px;
-webkit-transition: all .3s;
-moz-transition: all .3s;
-o-transition: all .3s;
transition: all .3s;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
-moz-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
}
#cssmenu ul ul > li:hover > ul {
opacity: 1;
left: 190px;
visibility: visible;
}
#cssmenu ul ul a:hover {
background-color: #cc2c24;
color: #f0f0f0;
}
HTML code for CSS menu
<div id='cssmenu'>
<ul>
<li class='has-sub'><a href='#'><span>Trending</span></a>
<ul>
<li class='has-sub'><a href='#'><span>Support and Resisrance</span></a>
<ul>
<li><a href='#'><span>Creation of Support</span></a></li>
<li><a href='#'><span>Creation of Resistance</span></a></li>
<li><a href='#'><span>Broken Support Becoming Resistance</span></a></li>
<li><a href='#'><span>Broken Resistance Becoming Support</span></a></li>
<li class='last'><a href='#'><span>Significance of Support and Resistance</span></a></li>
</ul>
</li>
<li><a href='#'><span>Dow Theory</span></a></li>
<li><a href='#'><span>Channel Lines</span></a></li>
<li><a href='#'><span>Trendlines</span></a></li>
<li class='last'><a href='#'><span>Fan Principle</span></a></li>
</ul>
</li>
<li class='has-sub'><a href='#'><span>Chart Patterns</span></a>
<ul>
<li class='has-sub'><a href='#'><span>Head And Shoulders Pattern</span></a>
<ul>
<li><a href='#'><span>Formation In Bull Market</span></a></li>
<li class='last'><a href='#'><span>Formation in Bear Market</span></a></li>
</ul>
</li>
<li><a href='#'><span>Key Reversal</span></a></li>
<li class='has-sub'><a href='#'><span>Symmetrical Triangles</span></a>
<ul>
<li><a href='#'><span>Ascending Triangle</span></a></li>
<li class='last'><a href='#'><span>Descending Triangle</span></a></li>
</ul>
</li>
<li><a href='#'><span>Rectangles</span></a></li>
<li><a href='#'><span>Flags</span></a></li>
<li class='last'><a href='#'><span>Pennants</span></a></li>
</ul>
</li>
<li class='has-sub last'><a href='#'><span>Oscillators and indicators</span></a>
<ul>
<li><a href='#'><span>Leading and Lagging</span></a></li>
<li><a href='#'><span>RSI</span></a></li>
<li><a href='#'><span>Stochastic Oscillator </span></a></li>
<li class='last'><a href='#'><span>MACD</span></a></li>
</ul>
</li>
</ul>
</div>
Finally got it, the text had a z-index set on it, causing it to render above the menu.
Remove the following, and your problem is solved:
.sqs-block {
position: relative;
clear: both;
z-index: 1;
}
Related
I'm building this site but having a small problem with the navigation bar. I currently have the width=100% of the navigation which works fine but when I resize the browser horizontally it shrinks the menu's (the menus are there but the background gets cut off). I want the width to be 100% initially and not resize at all with the browser shrinking or expanding. Can anyone help?
Site: http://bepas.azurewebsites.net/
Below is my CSS. Specific line: #cssmenu {height: 50px; width:100% ...
html,body {
margin:0;
padding:0;
height:100%;
}
#cssmenu ul { margin: 0; padding: 0; white-space:nowrap;}
#cssmenu li { margin: 0; padding: 0;}
#cssmenu a { margin: 0; padding: 0;}
#cssmenu ul {list-style: none;}
#cssmenu a {text-decoration: none;}
#cssmenu {height: 50px; width:100%;background-color: #708090; box-shadow: 0px 2px 3px rgba(0,0,0,.4); }
#cssmenu > ul > li {
display:inline-block;
margin-left: 65px;
position: relative;
}
#cssmenu > ul > li > a {
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 18px;
line-height: 50px;
padding: 0px;
-webkit-transition: color .15s;
-moz-transition: color .15s;
-o-transition: color .15s;
transition: color .15s;
}
#cssmenu > ul > li > a:hover {color: #000000; }
body.home li.home, body.tech li.tech {font-weight:bold; }
#cssmenu > ul > li > ul {
opacity: 0;
visibility: hidden;
padding: 0px 0 20px 0;
background-color: #FFFFFF;
text-align: left;
position: absolute;
top: 55px;
left: 50%;
margin-left: -80px;
width: 260px;
-webkit-transition: all .3s .1s;
-moz-transition: all .3s .1s;
-o-transition: all .3s .1s;
transition: all .3s .1s;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0px 1px 3px rgba(0,0,0,.4);
-moz-box-shadow: 0px 1px 3px rgba(0,0,0,.4);
box-shadow: 0px 1px 3px rgba(0,0,0,.4);
}
#cssmenu > ul > li:hover > ul {
opacity: 1;
top: 50px;
visibility: visible;
}
#cssmenu > ul ul > li { position: relative;}
#cssmenu ul ul a{
color: rgb(50,50,50);
font-family: Verdana, 'Lucida Grande';
font-size: 13px;
background-color: #FFFFFF;
padding: 5px 8px 7px 16px;
display: block;
-webkit-transition: background-color .1s;
-moz-transition: background-color .1s;
-o-transition: background-color .1s;
transition: background-color .1s;
}
#cssmenu ul ul a:hover {background-color: rgb(240,240,240);}
#cssmenu ul ul ul {
visibility: hidden;
opacity: 0;
position: absolute;
top: -16px;
left: 206px;
padding: 16px 0 20px 0;
background-color: rgb(250,250,250);
text-align: left;
width: 160px;
-webkit-transition: all .3s;
-moz-transition: all .3s;
-o-transition: all .3s;
transition: all .3s;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0px 1px 3px rgba(0,0,0,.4);
-moz-box-shadow: 0px 1px 3px rgba(0,0,0,.4);
box-shadow: 0px 1px 3px rgba(0,0,0,.4);
}
#cssmenu ul ul > li:hover > ul { opacity: 1; left: 196px; visibility: visible;}
#cssmenu ul ul a:hover{
background-color: rgb(205,44,36);
color: rgb(240,240,240);
}
Here is my html snippet of how the menu is defined.
<div id="cssmenu">
<ul>
<li>Sites
<ul>
<li>My Sites List</li>
<li>Site General Info.</li>
<li>Utility Billing (Electricity)</li>
<li>Utility Billing (Gas)</li>
<li>Utility Billing (Solar)</li>
<li>Occupancy Info.</li>
<li>Exterior Lighting</li>
</ul>
</li>
<li>Buildings
<ul>
<li>General Info.</li>
<li>Exterior Lighting</li>
<li>Roof & Exhaust Fans</li>
<li>HVAC Inventory</li>
</ul>
</li>
<li>Rooms
<ul>
<li>General Info.</li>
<li>Interior Lighting</li>
<li>Windows–Envelope Fenestration</li>
<li>Doors – Envelope Fenestration</li>
<li>Plugloads</li>
<li>Skylights – Envelope Fenestration</li>
<li>Domestic Hot Water Form</li>
<li>Specialty Kitchen Equipment</li>
<li>Misc. Inventory</li>
</ul>
</li>
<li>Runtime Schedulers
<ul>
<li>link</li>
<li>link</li>
<li>link</li>
<li>link</li>
</ul>
</li>
<li>Swimming Pools
<ul>
<li>link</li>
<li>link</li>
<li>link</li>
<li>link</li>
</ul>
</li>
<li>Report</li>
<li>Temperature
<ul>
<li>link</li>
<li>link</li>
<li>link</li>
<li>link</li>
</ul>
</li>
<li>Sign in</li>
</ul>
</div>
Put this in the header tag of your html document (all of your html documents) to remove that weird behavior (this solved my problem):
<meta name="viewport" content="width=device-width, initial-scale=1.0">
make your menu items without display inline-block, replace it with float like this
#cssmenu > ul > li {
/* display: inline-block; */
margin-left: 65px;
position: relative;
float: left;
}
This is happening because you are using width:100%. What you need is to specify a min-width style and give its value in pixels. For its appropriate value in pixels check you navigation bar by re-sizing the window horizontally and select something beyond which you can't tolerate the shrinking. You can use standard 1024px, eg,
#cssmenu{ min-width: 1024px; }
This sounds impossible, but is it possible to have a blur filter behind a drop down menu? This is what the HTML looks like:
<nav class="menu">
<ul>
<li><a id="button1" href="index.html">Home</a></li>
<li><a id="button2" href="#">Courses</a></li>
<li><a id="button3" href="">Enrol</a></li>
<li>
<a id="button4" href="#">Day Categories</a>
<ul class="sub-menu">
<li>Sunday</li>
<li>Monday</li>
<li>Tuesday</li>
<li>Wednesday</li>
<li>Thursday</li>
<li>Friday</li>
<li>Saturday</li>
</ul>
</li>
</ul>
</nav>
And CSS:
.menu li:hover .sub-menu {
z-index: 1;
opacity: 0.95;
}
.sub-menu {
margin-top: 15px;
padding-top: 10px;
padding-bottom: 10px;
width: 160%;
position:absolute;
top: 100%;
left: 0px;
z-index: -1;
opacity: 0;
transition: all 0.75s ease;
box-shadow: 0px 2px 3px rgba(0,0,0,0.2);
background-color: #3066be;
}
.sub-menu li {
display: block;
font-size: 16px;
}
.sub-menu li a {
padding: 10px 30px;
display: block;
}
Seeing as that I didn't find anything about this on the Internet, I wouldn't be surprised if this wasn't possible. The drop down menu is partly transparent and I would really like a Windows Aero or iOS 7 style menu.
You can try this
HTML
<nav class="menu">
<ul>
<li><a id="button1" href="index.html">Home</a></li>
<li><a id="button2" href="#">Courses</a></li>
<li><a id="button3" href="">Enrol</a></li>
<li>
<a id="button4" href="#">Day Categories</a>
<ul class="sub-menu">
<li>Sunday</li>
<li>Monday</li>
<li>Tuesday</li>
<li>Wednesday</li>
<li>Thursday</li>
<li>Friday</li>
<li>Saturday</li>
</ul>
</li>
</ul>
CSS
.menu{
padding: 0px;
margin: 0 0 10px 0;
position: relative;
}
.menu li{
font-size: 30px;
display: block;
}
.sub-menu {
margin-top: 15px;
padding-top: 10px;
padding-bottom: 10px;
width: 160%;
position:absolute;
top: 100%;
left: 0px;
z-index: -1;
opacity: 0;
transition: all 0.75s ease;
box-shadow: 0px 2px 3px rgba(0,0,0,0.2);
background-color: #3066be;
}
.menu li a{
color: black;
display: block;
text-transform: uppercase;
text-shadow: 0px 0px 5px #fff;
letter-spacing: 1px;
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.menu:hover li a{
text-shadow: 0px 0px 5px #0d1a3a;
}
.menu li a:hover{
color: #fff;
text-shadow: 0px 0px 1px #fff;
padding-left: 10px;
}
See this : Jsfiddle example
I'm trying to get my sub-menu to align left. The team names are spilling over. Either it needs aligned left or I need to widen the sub-menu. I think I am just over-looking what needs to be done, but I just can't figure it out.
nav {
background-color: #000;
border: 1px solid #000;
border-radius: 4px;
box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.055);
color: #888;
display: block;
margin: 8px 22px 8px 22px;
overflow: hidden;
width: 90%;
text-align: center;
}
nav ul {
margin: 0;
padding: 0;
}
nav ul li {
display: inline-block;
list-style-type: none;
-webkit-transition: all 0.2s;
-moz-transition: all 0.2s;
-ms-transition: all 0.2s;
-o-transition: all 0.2s;
transition: all 0.2s;
}
nav > ul > li > a > .caret {
border-top: 4px solid #FFF;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
content: "";
display: inline-block;
height: 0;
width: 0;
vertical-align: middle;
-webkit-transition: color 0.1s linear;
-moz-transition: color 0.1s linear;
-o-transition: color 0.1s linear;
transition: color 0.1s linear;
}
nav > ul > li > a {
color: #FFF;
display: block;
line-height: 56px;
padding: 0 24px;
text-decoration: none;
}
nav > ul > li:hover {
background-color: rgb(40, 44, 47);
}
nav > ul > li:hover > a {
color: rgb(255, 255, 255);
}
nav > ul > li:hover > a > .caret {
border-top-color: rgb(255, 255, 255);
}
nav > ul > li > div {
background-color: rgb(40, 44, 47);
border-top: 0;
border-radius: 0 0 4px 4px;
box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.055);
display: none;
margin: 0;
opacity: 0;
position: absolute;
width: 165px;
visibility: hidden;
z-index: 100;
-webkit-transiton: opacity 0.2s;
-moz-transition: opacity 0.2s;
-ms-transition: opacity 0.2s;
-o-transition: opacity 0.2s;
-transition: opacity 0.2s;
}
nav > ul > li:hover > div {
display: block;
opacity: 1;
visibility: visible;
}
nav > ul > li > div ul > li {
display: block;
}
nav > ul > li > div ul > li > a {
color: #fff;
display: block;
padding: 12px 24px;
text-decoration: none;
}
nav > ul > li > div ul > li:hover > a {
background-color: rgba(255, 255, 255, 0.1);
}
<nav>
<ul>
<li>Home
</li>
<li>Teams <span class="caret"></span>
<div>
<ul>
<li>Link
</li>
<li>Link
</li>
<li>Link
</li>
<li>Link
</li>
<li>Link
</li>
<li>Link
</li>
<li>Link
</li>
<li>Link
</li>
<li>Link
</li>
<li>Link
</li>
<li>Link
</li>
<li>Link
</li>
</ul>
</div>
</li>
<li>Link
</li>
<li>Link
</li>
</ul>
</nav>
I am stuck with a drop down menu that example I found at the following url : http://cssdeck.com/labs/another-simple-css3-dropdown-menu
The problem is with the hyper links, I tried to put <li><a href="#">about</></li> within the dropdown but it does not work like the cell over link.
Thanks for the help
body {
font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
padding: 20px 50px 150px;
font-size: 13px;
text-align: center;
background: #E3CAA1;
}
ul {
text-align: left;
display: inline;
margin: 0;
padding: 15px 4px 17px 0;
list-style: none;
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}
ul li {
font: bold 12px/18px sans-serif;
display: inline-block;
margin-right: -4px;
position: relative;
padding: 15px 20px;
background: #fff;
cursor: pointer;
-webkit-transition: all 0.2s;
-moz-transition: all 0.2s;
-ms-transition: all 0.2s;
-o-transition: all 0.2s;
transition: all 0.2s;
}
ul li:hover {
background: #555;
color: #fff;
}
ul li ul {
padding: 0;
position: absolute;
top: 48px;
left: 0;
width: 150px;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
display: none;
opacity: 0;
visibility: hidden;
-webkit-transiton: opacity 0.2s;
-moz-transition: opacity 0.2s;
-ms-transition: opacity 0.2s;
-o-transition: opacity 0.2s;
-transition: opacity 0.2s;
}
ul li ul li {
background: #555;
display: block;
color: #fff;
text-shadow: 0 -1px 0 #000;
}
ul li ul li:hover { background: #666; }
ul li:hover ul {
display: block;
opacity: 1;
visibility: visible;
}
<ul><li>Home</li>
<li>About</li>
<li>
Portfolio
<ul>
<li>Web Design</li>
<li>Web Development</li>
<li>Illustrations</li>
</ul>
</li>
<li>Blog</li>
<li>Contact</li>
</ul>
<ul><li>Home</li>
<li>About</li>
<li>Portfolio<ul>
<li>Web Design</li>
<li>Web Development</li>
<li>Illustrations</li>
</ul>
</li>
<li>Blog</li>
<li>Contact</li>
</ul>
try something like this i changed <li>About</li> You forgot to close </a>
EDIT:
add this to your css file. If this is what you mean
a{
text-decoration:none;
color:#fff;
}
I am currently using a CSS menu on PHP includes. I have gotten to to be compatible with IE and Chrome and I assume Firefox. However in IE, The sub menu for my drop down menu is to far away from the drop down and disapears before I can hover above it.
The original CSS
#cssmenu ul { margin: 0; padding: 0;}
#cssmenu li { margin: 0; padding: 0;}
#cssmenu a { margin: 0; padding: 0;}
#cssmenu ul {list-style: none;}
#cssmenu a {text-decoration: none;}
#cssmenu {height: 70px; background-color: rgb(35,35,35); box-shadow: 0px 2px 3px rgba(0,0,0,.4);}
#cssmenu > ul > li {
float: left;
margin-left: 15px;
position: relative;
}
#cssmenu > ul > li > a {
color: rgb(160,160,160);
font-family: Verdana, 'Lucida Grande';
font-size: 15px;
line-height: 70px;
padding: 15px 20px;
-webkit-transition: color .15s;
-moz-transition: color .15s;
-o-transition: color .15s;
transition: color .15s;
}
#cssmenu > ul > li > a:hover {color: rgb(250,250,250); }
#cssmenu > ul > li > ul {
opacity: 0;
visibility: hidden;
padding: 16px 0 20px 0;
background-color: rgb(250,250,250);
text-align: left;
position: absolute;
top: 55px;
left: 50%;
margin-left: -90px;
width: 180px;
-webkit-transition: all .3s .1s;
-moz-transition: all .3s .1s;
-o-transition: all .3s .1s;
transition: all .3s .1s;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0px 1px 3px rgba(0,0,0,.4);
-moz-box-shadow: 0px 1px 3px rgba(0,0,0,.4);
box-shadow: 0px 1px 3px rgba(0,0,0,.4);
}
#cssmenu > ul > li:hover > ul {
opacity: 1;
top: 65px;
visibility: visible;
}
#cssmenu > ul > li > ul:before{
content: '';
display: block;
border-color: transparent transparent rgb(250,250,250) transparent;
border-style: solid;
border-width: 10px;
position: absolute;
top: -20px;
left: 50%;
margin-left: -10px;
}
#cssmenu > ul ul > li { position: relative;}
#cssmenu ul ul a{
color: rgb(50,50,50);
font-family: Verdana, 'Lucida Grande';
font-size: 13px;
background-color: rgb(250,250,250);
padding: 5px 8px 7px 16px;
display: block;
-webkit-transition: background-color .1s;
-moz-transition: background-color .1s;
-o-transition: background-color .1s;
transition: background-color .1s;
}
#cssmenu ul ul a:hover {background-color: rgb(240,240,240);}
#cssmenu ul ul ul {
visibility: hidden;
opacity: 0;
position: absolute;
top: -16px;
left: 206px;
padding: 16px 0 20px 0;
background-color: rgb(250,250,250);
text-align: left;
width: 160px;
-webkit-transition: all .3s;
-moz-transition: all .3s;
-o-transition: all .3s;
transition: all .3s;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0px 1px 3px rgba(0,0,0,.4);
-moz-box-shadow: 0px 1px 3px rgba(0,0,0,.4);
box-shadow: 0px 1px 3px rgba(0,0,0,.4);
}
#cssmenu ul ul > li:hover > ul { opacity: 1; left: 196px; visibility: visible;}
#cssmenu ul ul a:hover{
background-color: rgb(205,44,36);
color: rgb(240,240,240);
}
MENU code:
<div id='cssmenu'>
<ul>
<li><a href='index.php'><span>Home</span></a></li>
<li><a href='about.php'><span>About</span></a></li>
<li class='has-sub '><a href='#'><span>Services</span></a>
<ul>
<li class='has-sub '><a href='4wdtraining.php'><span>4WD Training</span></a>
<ul>
<li><a href='basictraining.php'><span>Basic</span></a></li>
<li><a href='intermediatetraining.php'><span>Intermediate</span></a></li>
<li><a href='advancedtraining.php'><span>Advanced</span></a></li>
<li><a href='nightdriving.php'><span>Night Driving</span></a></li>
<li><a href='recovery.php'><span>Recovery</span></a></li>
<li><a href='custompackages.php'><span>Custom Packages</span></a></li>
</ul>
</li>
<li><a href='bushmechanic.php'><span>Bush Mechanic</span></a></li>
</ul>
</li>
<li><a href='estore.php'><span>eStore</span></a></li>
<li><a href='gallery.php'><span>Gallery</span></a></li>
<li><a href='#'><span>Contact</span></a></li>
</ul>
</div>
Live example at www.offthebitumen.com.au
Things I have tried: Changing the padding, changing positions from absolute to relative, getting rid of the border, adding display: inline - nothing has worked.
Also if anyone has Chrome and IE, why is the menu more rounded compared to the IE version? Is there anything I can do about it?
It's because you have a gap.
I did a little hack, hope it will help.
<div id='cssmenu'>
<ul>
<li><a href='index.php'><span>Home</span></a></li>
<li><a href='about.php'><span>About</span></a></li>
<li class='has-sub '><a href='#'><span>Services</span></a>
<ul>
<li class='has-sub '><a href='4wdtraining.php'><span>4WD Training</span></a>
<ul>
<li><a href='basictraining.php'><span>Basic</span></a></li>
<li><a href='intermediatetraining.php'><span>Intermediate</span></a></li>
<li><a href='advancedtraining.php'><span>Advanced</span></a></li>
<li><a href='nightdriving.php'><span>Night Driving</span></a></li>
<li><a href='recovery.php'><span>Recovery</span></a></li>
<li><a href='custompackages.php'><span>Custom Packages</span></a></li>
</ul>
<!-- THIS IS THE FIX --> <div class="hack"></div> <!-- end FIX -->
</li>
<li><a href='bushmechanic.php'><span>Bush Mechanic</span></a></li>
</ul>
</li>
<li><a href='estore.php'><span>eStore</span></a></li>
<li><a href='gallery.php'><span>Gallery</span></a></li>
<li><a href='#'><span>Contact</span></a></li>
</ul>
</div>
And just 2 bits of css:
#cssmenu ul ul > li:hover > ul { opacity: 1; left: 196px; visibility: visible;}
#cssmenu ul ul ul {
z-index: 5;
}
Good luck !