I am in the process of creating master pages. In one of the master pages, I have implemented a dropdown menu using jQuery and CSS. While it works perfectly fine on some pages, it seems to be hidden on others that contain a div element. This is because the menu appears underneath the div, making it invisible on those particular pages. Below are the CSS and HTML code snippets.
body
{
font-size: 0.85em;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
#nav, #nav ul
{
margin: 0;
padding: 0;
list-style-type: none;
list-style-position: outside;
position: relative;
line-height: 1.5em;
}
#nav a
{
display: block;
padding: 0px 5px;
border: 1px solid #333;
color: #fff;
text-decoration: none;
background: #595651;
}
...
Language: lang-html
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="adminmenu.ascx.cs" Inherits="UserControls_adminmenu" %>
<!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>
<title></title>
<link href="../MainStyles/Menu3.css" rel="stylesheet" type="text/css" />
<script type='text/javascript' src="../Jquery/jquery-1.2.3.min.js"></script>
<script type='text/javascript' src="../Jquery/menu.js"></script>
<link href="../MainMenucss/MaimSlideMenu.css" rel="stylesheet" type="text/css" />
</head>
...