Jump to content

CSS Menu


dezkit

Recommended Posts

Hey guys I got this

#menuh a
{
text-align: center;
display:block;
white-space:nowrap;
margin:0;
padding: 0.3em;
line-height:30px;
border:1px solid #ff0000;
}


#menuh a:link, #menuh a:visited, #menuh a:active	/* menu at rest */
{
color: white;
text-decoration:none;
}

#menuh a:hover						/* menu on mouse-over  */
{
color: white;
background-color: #8e1314;
text-decoration:none;
}	

#menuh a.top_parent, #menuh a.top_parent:hover  /* attaches down-arrow to all top-parents */
{
background-image: url(navdown_white.gif);
background-position: right center;
background-repeat: no-repeat;
}

#menuh a.parent,  	/* attaches side-arrow to all parents */
{
background-image: url(nav_white.gif);
background-position: right center;
background-color: #8e1314;
/* border:1px solid #ff0000;	*/
background-repeat: no-repeat;
}

#menuh a.parent:hover
{

}

#menuh ul
{
list-style:none;
margin:0;
padding:0;
float:left;
width:9em;	/* width of all menu boxes */
/* NOTE: For adjustable menu boxes you can comment out the above width rule.
However, you will have to add padding in the "#menh a" rule so that the menu boxes
will have space on either side of the text -- try it */
}

#menuh li
{
position:relative;
min-height: 1px;		/* Sophie Dennis contribution for IE7 */
vertical-align: bottom;		/* Sophie Dennis contribution for IE7 */
}

#menuh ul ul
{
position:absolute;
z-index:500;
top:auto;
display:none;
padding: 1em;
margin:-1em 0 0 -1em;
}

#menuh ul ul ul
{
top:0;
left:100%;
}

div#menuh li:hover
{
cursor:pointer;
z-index:100;
}

div#menuh li:hover ul ul,
div#menuh li li:hover ul ul,
div#menuh li li li:hover ul ul,
div#menuh li li li li:hover ul ul
{display:none;}

div#menuh li:hover ul,
div#menuh li li:hover ul,
div#menuh li li li:hover ul,
div#menuh li li li li:hover ul
{display:block;}

/* End CSS Drop Down Menu */

 

And I want it to look like this: htv76q.png

 

How would I do this? Can somebody please fix my code to look like that?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.