473,396 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Menus cannot be displayed

Hi,

Am new to CSS and having some problems displaying the sub-menus in my design. My code is as follows:
<div id="topcontainer"> // this contains the logo and navbar
<div id="navcontainer"> // this contains the menu
<div id="nav">
<ul class="menu">
::::::::
::::::::
</ul>
</div>
</div>
</div>
<div id="videocontainer"></div> // this contains the image

Now the problem here is that the dropdowns are hidden behind the div"videoconatiner" and even if the remove the bg color for videocontainer they are not clickabe and disappear on rollover

Can't figure out why that is happening??
Nov 13 '07 #1
2 1243
drhowarddrfine
7,435 Expert 4TB
You ask what's wrong with the CSS yet you show the HTML. Without the complete markup or a link, we can only guess.
Nov 13 '07 #2
sorry abt that, here goes:

#navcontainer{
position: relative;
width: 968px;
height: 33px;
padding: 0;
margin: 0 0 10px 0;
}

#nav {height:33px; position:relative; z-index:100; top:-2px; left:2px;}

.menu, .menu ul {list-style-type:none; padding:0; margin:0; font-family:arial, sans-serif;}

.menu li.top {display:block; float:left; position:relative;}

.menu table {border-collapse:collapse; width:0; height:0; position:absolute; top:0; left:0;}

.menu li.top a.top_link {display:block; float:left; height:33px;}
.menu li.top a span {position:absolute; left:-9999px; top:0; z-index:0; font-size:10px; font-weight:bold;} /* move the link text off screen */

.menu li.p1 {width:85px; background:url(../images/...gif) no-repeat;;}
.menu li.p2 {width:125px; background:url(../images/...gif) no-repeat;;}
.menu li.p3 {width:121px; background:url(../images/...gif) no-repeat;;}
.menu li.p4 {width:115px; background:url(../images/...gif) no-repeat;;}
.menu li.p5 {width:113px; background:url(../images/...gif) no-repeat;;}
.menu li.p6 {width:116px; background:url(../images/...gif) no-repeat;;}
.menu li.p7 {width:139px; background:url(../images/...gif) no-repeat;;}
.menu li.p8 {width:149px; background:url(../images/...gif) no-repeat;;}

.menu li a#home {width:85px; background:url(../images/...gif) no-repeat;}
.menu li a#company {width:125px; background:url(../images/homecompany_1.gif) no-repeat;}
.menu li a#solutions {width:121px; background:url(../images/...gif) no-repeat;}
.menu li a#services {width:115px; background:url(../images/...gif) no-repeat;}
.menu li a#clients {width:113px; background:url(../images/...gif) no-repeat;}
.menu li a#careers {width:116px; background:url(../images/...gif) no-repeat;}
.menu li a#contact {width:139px; background:url(../images/...gif) no-repeat;}
.menu li a#online {width:149px; background:url(../images/...gif) no-repeat;}

.menu a:hover {visibility:visible;} .menu li:hover { position:relative; z-index:200;}


.menu li a#home:hover, .menu li:hover a#home,
.menu li a#company:hover, .menu li:hover a#company,
.menu li a#solutions:hover, .menu li:hover a#solutions,
.menu li a#services:hover, .menu li:hover a#services,
.menu li a#clients:hover, .menu li:hover a#clients,
.menu li a#careers:hover, .menu li:hover a#careers,
.menu li a#contact:hover, .menu li:hover a#contact,
.menu li a#online:hover, .menu li:hover a#online {background:transparent;}

.menu ul,
.menu :hover ul ul,
.menu :hover ul :hover ul ul,
.menu :hover ul :hover ul :hover ul ul,
.menu :hover ul :hover ul :hover ul :hover ul ul {position:absolute; left:-9999px; top:-9999px; width:0; height:0;}

.menu :hover ul.sub {left:0; top:33px; background:url(../images/submenusactive.gif) no-repeat; padding:0; width:165px; height:21px;}
.menu :hover ul.sub li {display:block; height:21px; position:relative; float:left; width:90px;}
.menu :hover ul.sub li a {display:block; font-size:11px; font-weight:bold; height:21px; width:165px; line-height:20px; text-indent:5px; color:#666666; text-decoration:none;background:url(../images/submenusactive.gif) no-repeat;}
.menu :hover ul.sub li a:hover {background:url(multi_level-files/submenushover.gif) no-repeat; color:#fff;}


#videocontainer
{
background:#ffffff;
position:relative;
width:968px;
height:238px;
padding:0;
left:3px;
top:11px;
}

hope that helps.
Nov 13 '07 #3

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

Similar topics

4
by: Ian Davies | last post by:
Hello I have two drop down menus in my php script. The items displayed in the second is dependent on which item is choosen from the first i.e. the choosen item from the first filters the items in...
2
by: Pete | last post by:
In Access 95/97 I used to be able to create pull down menus (File,Edit ...) from a macro. It seems there used to be some wizard for that. However in Access 2000 it seems you have to build your...
1
by: cefrancke | last post by:
I have set the Startup properties to the following... All menus, toolbars, etc are turned off plus these are unchecked Allow Full Menus Allow Built-in Toolbars Allow Default Shortcut Menus...
0
by: cefrancke | last post by:
I recently discovered, that if you set the startup options for "security", you will have alot of work do to get Access back to "normal". If you disable the built-in menus/toolbars you'll have to...
4
by: Karl Irvin | last post by:
I distribute an A 2000 app as a mde. On a few customers, my custom menus are overwritten. The top menu is generally there but the choices on the menus are gone or replaced by something else. ...
3
by: Steven Smith | last post by:
the way I'm undersatnding the MSDN documentation when creating parent and child forms the main menu for the child form should not be displayed on the child form itself but instead be incorporated...
0
by: tony.spalding | last post by:
I'm having a problem trying to add a link to my add-in to a context menu. I'm trying to add it to the context menu that you get when you right click on a stored procedure within the Server...
2
by: diogenes | last post by:
I have created many shortcut/popup (aka context, or right-click) menus for my application - instead of toolbars or standard drop-down menus. Within my custom menu, I am using...
0
by: JosAH | last post by:
A Simple Text-Based Menu System Read this this post; there are numerous posts like that: a newbie struggling with some sort of menu implementation. They want nested menus of course and an option...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.