No replies
Vestax159
Vestax159's picture
Offline
newbie
Last seen: 10 years 23 weeks ago
Timezone: GMT-4
Joined: 2010-04-01
Posts: 3
Points: 5

Ok so I have a 3 category horizontal drop down menu. The problem is the last category is way too long for the page so I'm looking to make it a two column pull out if it's longer then X. I can use PHP to determine if the list is to long if that helps.

http://gator692.hostgator.com/~aopaj/index.php?osCsid=9d2109fdc0263a7325a9b08213349fcb

#menu-container
	{
	position: relative;
	width: 100%;
	height: 5%;
 
	}
 
#menu
	{
	font-size: small;
	font-family: arial, helvetica, sans-serif;
	width:100%;
	float:center;
	margin-top: 0%;
	height: 0%;
	margin-right: 0%;
	margin-bottom: 0%;
	margin-left: 0%;
	position: relative;
	top: 0%;
 
	}
 
#menu a
	{
	text-align: center;
	display:block;
	border: 1px solid #555555;
	margin:0;
	padding: 1px;
	}
 
#menu a:link, #menu a:visited, #menu a:active
	{
	color: #FFFFFF;
	background-color: #000000;
	text-decoration:none;
	}
 
#menu a:hover
	{
	color: #FFFFFF;
	background-color: #6495ED;
	text-decoration:none;
	}	
 
#menu a.top_parent, #menu a.top_parent:hover
	{
	background-image: url(navdown_white.gif);
	background-position: right center;
	background-repeat: no-repeat;
	}
 
#menu a.parent, #menu a.parent:hover
	{
	background-image: url(nav_white.gif);
	background-position: right center;
	background-repeat: no-repeat;
	}
 
#menu ul
	{
	align:center;
	list-style:none;
	margin:0;
	padding:0;
	float:left;
	width:25%;
	}
 
#menu li
	{
	position:relative;
	min-height: 1px;
	vertical-align: bottom;
	}
 
#menu ul ul
	{
	position:absolute;
	z-index:500;
	top:auto;
	display:none;
	padding: 1em;
	margin:-13px 0px 0px -13px;
	width:100%;
 
	}
 
#menu ul ul ul
	{
	top:0;
	left:100%;
	width:60%;
 
	}
 
div#menu li:hover
	{
	cursor:pointer;
	z-index:100;
	}
 
div#menu li:hover ul ul,
div#menu li li:hover ul ul,
div#menu li li li:hover ul ul,
div#menu li li li li:hover ul ul
{display:none;}
 
div#menu li:hover ul,
div#menu li li:hover ul,
div#menu li li li:hover ul,
div#menu li li li li:hover ul
{display:block;}