Results 1 to 2 of 2

Thread: hover display on sub menu not workingm, doing something wrong.....

  1. #1
    Join Date
    Sep 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default hover display on sub menu not workingm, doing something wrong.....

    HTML Code:
    <HTML>
    <HEAD>
    <BODY BGCOLOR="#e1d8c9" text="061208">
    <style>
    	/*rules navigation menu*/
    	/*=====================*/
    	ul#navbar, ul.sub1, ul.sub2 {
    	list-style-type: none;
    	}
    	ul#navbar li {
    		/*border: 1px solid red;*/
    		width: 150px;
    		text-align: center;
    		position: relative;
    		float: left;
    		margin-right: 4px;
    		}
    	ul#navbar a {
    		text-decoration: none;
    		display: block;
    		width: 130x;
    		hight: 25px;
    		line-height: 25px;
    		background-color: #CCCCCC;
    		border: 1px solid #ccc
    		border-radius: 5px;
    	}
    	/*Hides drop downs when not hovered over and reveals them when they are hovered over.*/
    	ul#navbar ul.sub1 {
    		display: none;
    		position: absoulte;
    		top: 26px;
    		left: 10px;
    	}
    	ul#navbar ul li ul a:hover .sub1 {
    		display: block;
    	}
    		ul#navbar ul.sub2 {
    		display: none;
    		position: absoulte;
    		top: 26px;
    		left: 0px;
    	}
    	/*list submenus menu*/
    	/*=====================*/
    	ul#navbar .sub1 li{
    		margin-top: 3px;
    	}
    	ul#navbar .sub1 a{
    		margin-top: 3px;
    		}
    	ul#navbar .sub2 li{
    		margin-top: 3px;
    	}
    	ul#navbar .sub2 a{
    		margin-top: 3px;
    	}
    	/*hover navigation menu*/
    	/*=====================*/	
    	#navbar a:hover, #navbar a:active {
    		color: #000000;
    		background-color: #8db3ff;
    		text-decoration: underline;
    		}
    	#navbar ul ul{
    		display: none;
    		}
    	#navbar li:hover li {
    		float: none; }
    	#navbar li:hover li a {
    		background-color: yellow;
    		border-bottom: 1px solid #fff;
    		color: yellow; }
    	#navbar li li a:hover {
    		background-color: #8db3ff;
    	}
    
    
    
    </style>
    </HEAD>
    <h1></h1>
    <UL id="navbar">
    		<li><a href="L:\CADWeb\pdf\EXAMPLE PLANS\DPD PLANS.pdf"target="main">Civil Plans</a></li>
    		<li><a href="L:\CADWeb\pdf\EXAMPLE PLANS\PLOT PLANS\PLOT PLANS.pdf"target="main">PLOT Plans</a>
    			<ul class="sub1">
    				<li><a href="L:\CADWeb\pdf\EXAMPLE PLANS\DPD PLANS.pdf"target="main"> As-Builts</a></li>
    				<li><a href="L:\CADWeb\pdf\EXAMPLE PLANS\DPD PLANS.pdf"target="main"> Finshed Grade Plan </a></li>
    				<li><a href="L:\CADWeb\pdf\EXAMPLE PLANS\DPD PLANS.pdf"target="main"> As-Builts</a></li>
    				<li><a href="L:\CADWeb\pdf\EXAMPLE PLANS\DPD PLANS.pdf"target="main"> Finshed Grade Plan </a></li>
    			</ul>
    		</li>
    		<li><a href="L:\CADWeb\pdf\EXAMPLE PLANS\DPD PLANS.pdf"target="main"> Development Grading Plan</a></li>
    		<li><a href="L:\CADWeb\pdf\EXAMPLE PLANS\DPD PLANS.pdf"target="main"> SDOT SIP Plans</a></li>
    		<li><a href="L:\CADWeb\pdf\EXAMPLE PLANS\DPD PLANS.pdf"target="main"> SDOT DPF Plans</a></li>
    </ul>
    
    </HTML>
    Last edited by jscheuer1; 09-19-2014 at 02:28 AM. Reason: format code

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Code:
    	ul#navbar ul.sub1 {
    		display: none;
    		position: absoulte;
    		top: 26px;
    		left: 10px;
    	}
    	ul#navbar  li:hover ul.sub1 {
    		display: block;
    	}
    BTW, it's not directly related, but you've spelled absolute wrong in two places.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Chrome display wrong with crawler
    By TheGene in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 01-24-2013, 04:54 PM
  2. Replies: 6
    Last Post: 11-29-2012, 07:22 PM
  3. Replies: 0
    Last Post: 03-07-2011, 10:21 AM
  4. Pagination links display wrong in Firefox
    By vvv7000 in forum Dynamic Drive scripts help
    Replies: 8
    Last Post: 11-15-2008, 05:39 AM
  5. Wrong Placement for Hover Menu
    By cboyda in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 07-17-2007, 04:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •