Forum Moderators: not2easy
thanks in advance.
-Im using spryte DreamWeaver CS3 to generate the top menu bar-
[edited by: SuzyUK at 5:13 pm (utc) on April 21, 2008]
[edit reason] Please No URI's, see guidelines at top of forum [/edit]
this is the XHTML CODE
-----------------------------------------
<div id="container">
<div id="header">
<div id="banner"> --------- </div>
<div id="menuBarH"> //HERE IS THE PROBLEM, THE SUBMENU DOESNT SHOW <ul id="MenuBar1" class="MenuBarHorizontal">
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#" class="MenuBarItemSubmenu">4</a>
<ul>
<a href="#">4.1</a>
<a href="#">4.2</a>
<a href="#">4.3</a>
</ul>
</li>
</ul>
<!-- end #menuBarH --></div>
<!-- end #header --></div>
<div id="sidebar1">
<ul id="MenuBar2" class="MenuBarVertical">
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
</ul>
<!-- end #sidebar1 --></div>
<div id="mainContent">
<!-- end #mainContent --></div>
<div id="footer">
<!-- end #footer --></div>
<!-- end #container --></div>
THIS IS THE CSS COMMON.CSS
-----------------------------------------
body {
font: 90% Arial, Helvetica, sans-serif;
margin: 0px;
padding: 0px;
text-align: right;
}
.common #header {
background: #DDDDDD;
padding: 0px;
background-color: #5A7296;
}
.common #banner {
float: right;
}
.common #menuBarH {
float: none;
clear: both;
width: 100%;
overflow: hidden; // ?
}
.common #sidebar1 {
float: left;
width: 12.7em;
padding: 0px;
height: 50em;
}
.common #mainContent {
margin: 1em 1.5em 1em 14em;
}
------------------------------------------
THIS IS THE CSS FOR THE MENUBARHORIZONTAL.CSS
-------------------------------------------
ul.MenuBarHorizontal
{
margin: 0 0 0 0;
padding: 0;
list-style-type: none;
font-size: 90%;
width: auto;
float: right;
}
------------------------------------------------
Just wanned to say again that this menu bar is generated by spryte in DW CS3 so it has tones of css rules but this is the most important one cause is the wrapper of the whole menu, im sure the rest of the rules are completly safe to my specific example.
Sorry again for posting a link :(
that code is not chopping the menu. but at a guess I'd say you don't need overflow:hidden.. if you want to contain floated li elements in that menubar:
.common #menuBarH {
float: left;
clear: both;
width: 100%;
/* overflow: hidden; /****/
background: #cfc;
}
float it instead, a floated parent also stretches to contain its floated children, which I presume is what you need overflow: hidden for?
if not give a shout back with some more detail
-Suzy