To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > ClientSide Technologies

ClientSide Technologies Discuss HTML/CSS/Javascript, and any other client-side technologies, here.

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-23-2006, 07:54 PM   #1
ninoj
Junior Member
 
Join Date: Feb 2006
Posts: 2
Exclamation Drop Down Menu Problem

I am trying to create a drop down menu for the site navigation but I am having some difficulty:

1. In IE there is a space at the top of the list which I want to delete

Can you please help me? Here is the link
http://www.solairaheaters.com/Templa...a_New_Menu.htm

Last edited by ninoj; 05-24-2006 at 02:40 PM.
ninoj is offline   Reply With Quote
Old 05-23-2006, 09:35 PM   #2
bpat1434
NMaOtBG
 
bpat1434's Avatar
 
Join Date: Oct 2004
Location: Around 255.255.255.0
Posts: 8,093
Not a PHP issue... should be in the client-side technology section as this is a CSS issue....

What is the CSS declaration for:
div#menu, ul#menu, li, li.submenu, ul#ProductsMenu

Last edited by bpat1434; 05-23-2006 at 09:38 PM.
bpat1434 is offline   Reply With Quote
Old 05-23-2006, 10:30 PM   #3
ninoj
Junior Member
 
Join Date: Feb 2006
Posts: 2
Here is Menu.css

Code:
/* 
 *		Horizontal, top-2-bottom menu
 *		Copyright Aleksandar Vacic, www.aplus.co.yu, some rights reserved http://creativecommons.org/licenses/by/2.0/
 */

/*		------	Basic style	------		*/

#menu {
	display: block;
}

#menu ul {
	margin: 0;
	padding: 0;
	border: 0;
	list-style-type: none;
}

#menu li {
	margin: 0;
	padding: 0;
	border: 0;
	display: block;
	float: left;
	position: relative;
}

#menu a {
	display: block;
}

/* fix the position for 2nd level submenus. make sure no horizontal scrollbars are visible on initial page load */
#menu li li ul {
	left: 0;
}

#menu li:hover {
	
}

/* initialy hide all sub menus */
#menu li ul {
	display: none;
	position: absolute;
	z-index: 10;
}

#menu li:hover>ul {
	display: block;
}

/* this is needed if you want to style #menu div - force containment of floated LIs inside of main UL */
#menuList:after {
	content: ".";
	height: 0;
	display: block;
	visibility: hidden;
	overflow: hidden;
	clear: both;
}

/* Clear-fix for IE5/Mac \*//*/
#menu a {
	float: left;
}

#menuList {
	display: inline-block;
}
/*  */

/*		------   Make-up	--------			*/

#menu {
	font-size: 0.9em;
	line-height: 1;
	color: #fff;
	padding-top: 1px;
}

#menu ul {
}

#menu li ul {
	color: #FFFFFF;
	margin-left: -1px;
	border-width: 1px 1px 0;
	background: #7C0024;
}

#menu a {
	font-weight: bold;
	text-decoration: underline;
	text-align: center;
	color: #FFFFFF;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}

#menu li:hover>a {
	color: #FFFFFF;
	text-decoration: none;
}

#menu a:hover {
	color: #FFFFFF !important;
}

#menu li li a {
	font-weight: normal;
	text-align: left;
	background: none;
	padding: 5px 1em 5px;
}

#menu li li:hover>a {
	border-bottom: 0;
}

#menu li {
}

#menu li li {
	background: none;
}

#menu li:hover {
}

#menu li li:hover {
	color: #FFFFFF;
	background: #B30035;
}

#menu li li.submenu>a:after {
	content: "...";
}

/* need to set absolute value for each submenu */

#ProductsMenu, #MyAccountMenu, #SupportMenu {
	width: 30em;
}

#CategoriesMenu {
	width: 23em;
}

#HardwareMenu {
	width: 500px;
}
Here is Menu4IE.css

Code:
/* 
 *		Horizontal, top-2-bottom menu ## Tweaks for IE5, IE6
 *		Copyright Aleksandar Vacic, www.aplus.co.yu, some rights reserved http://creativecommons.org/licenses/by/2.0/
 */

/*		------	Basic style	------		*/

/* Fix IE6's inability to expand clickable area */
#menu li a {
	position: relative;
}

/* IE can't handle display, so fail-over to visibility */
#menu li ul {
	display: block;
	visibility: hidden;
}

/* simulate child selector for IE */
#menu li:hover ul,
#menu li:hover li:hover ul,
#menu li:hover li:hover li:hover ul {
	visibility: visible;
}
#menu li:hover li ul,
#menu li:hover li:hover li ul,
#menu li:hover li:hover li:hover li ul {
	visibility: hidden;
}

#menuList {
	height: 1%;
}

/*		------   Make-up	--------			*/

#menu li ul {
	color: #000;
	background: #7C0024;
}

#menu a:hover {
	color: #000;
	background: transparent url(images/inset.png) no-repeat bottom;
}

#menu li li {
	border-bottom: 0;
}

#menu li li a:hover {
	color: #FFFFFF;
	background: #B30035;
	text-decoration: none;
}

/* 	------	Behaviors --------		*/
ninoj is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 02:27 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.