Some href links are not responding - css

I am making a menu, but I have a problem with a link.
body,html{
margin:0;
font:1em "open sans",sans-serif;
}
/**************/
/* MENU BAR */
/**************/
.nav-main{
width:100%;
background-color:#222;
height:70px;
color:#fff;
padding-left: 33%;
padding-right: 33%;
}
.nav-main > ul{
margin:0;
padding:0;
float:left;
list-style-type:none;
}
.nav-main > ul > li{
float:left;
}
.nav-item{
display:inline-block;
padding:15px 20px;
height:40px;
line-height:40px;
color:#fff;
text-decoration:none;
}
.nav-item:hover {
background-color:#444;
}
.nav-content{
position:absolute;
top:70px;
overflow:hidden;
background-color:#222;
max-height:0;
}
.nav-content a{
color:#fff;
text-decoration:none;
}
.nav-content a:hover{
text-decoration:underline;
}
.nav-sub{
padding:20px;
}
.nav-sub ul{
padding:0;
margin:0;
list-style-type:none;
}
.nav-sub ul li a{
display:inline-block;
padding:5px 0;
}
.nav-item:focus{
background-color:#444;
}
.nav-item:focus ~ .nav-content{
max-height:400px;
-webkit-transition:max-height 400ms ease-in;
-moz-transition:max-height 400ms ease-in;
transition:max-height 400ms ease-in;
}
<nav class="nav-main">
<ul>
<li>
Search
</li>
<li>
Extra's
<div class="nav-content">
<div class="nav-sub">
<ul>
<li>Instructions </li>
</ul>
</div>
</div>
</li>
</ul>
</nav>
try the links using [ctrl + click] to test the links
The "Search" box is working, but if you click on "Extras" --> "Instructions", nothing is happening.
I think that the link in Extra's is preventing it to work.
But without the "Extras" as a link, the menu wont expand.

Add this rule, so that the element is clickable:
.nav-item:focus ~ .nav-content,
.nav-content:hover {
max-height:400px;
-webkit-transition:max-height 400ms ease-in;
-moz-transition:max-height 400ms ease-in;
transition:max-height 400ms ease-in;
}
It is because, you have assigned the event on the focus, it goes off when you try to click on the link.
body,html{
margin:0;
font:1em "open sans",sans-serif;
}
/**************/
/* MENU BAR */
/**************/
.nav-main{
width:100%;
background-color:#222;
height:70px;
color:#fff;
padding-left: 33%;
padding-right: 33%;
}
.nav-main > ul{
margin:0;
padding:0;
float:left;
list-style-type:none;
}
.nav-main > ul > li{
float:left;
}
.nav-item{
display:inline-block;
padding:15px 20px;
height:40px;
line-height:40px;
color:#fff;
text-decoration:none;
}
.nav-item:hover {
background-color:#444;
}
.nav-content{
position:absolute;
top:70px;
overflow:hidden;
background-color:#222;
max-height:0;
}
.nav-content a{
color:#fff;
text-decoration:none;
}
.nav-content a:hover{
text-decoration:underline;
}
.nav-sub{
padding:20px;
}
.nav-sub ul{
padding:0;
margin:0;
list-style-type:none;
}
.nav-sub ul li a{
display:inline-block;
padding:5px 0;
}
.nav-item:focus{
background-color:#444;
}
.nav-item:focus ~ .nav-content, .nav-content:hover {
max-height:400px;
-webkit-transition:max-height 400ms ease-in;
-moz-transition:max-height 400ms ease-in;
transition:max-height 400ms ease-in;
}
<nav class="nav-main">
<ul>
<li>
Search
</li>
<li>
Extra's
<div class="nav-content">
<div class="nav-sub">
<ul>
<li>Instructions </li>
</ul>
</div>
</div>
</li>
</ul>
</nav>

add to your css
.nav-content:hover{
max-height:400px;
}
because max-height of nav-content only have 400px when focus .nav-item, if you click in other site .nav-content lost max-height and you didn´t click in link

Related

Sidebar menu dropdown coming down from the right

I have completed the sidebar menu already but I want it to dropdown coming from the right but mine is coming downwards. I try to search for those whose dropdown list comes out from the right but I can't find a lot of example. Can someone teach me what should I do to make it appear to the right side instead of coming downwards? Thanks in advance
As you can see in my screenshot, my dropdown is coming downwards only, I want it to appear at the right side. How do I do it?
sidebar.blade.php
<!DOCTYPE html>
<html>
<head>
<title>SideBar Menu</title>
<link href="{{ asset('css/test.css') }}" rel="stylesheet">
</head>
<body>
<div id="sidebar">
<ul>
<li>Summary</li>
<li>Deleted Records</li>
<li>Verification</li>
<li>Evalaluation</li>
<li class="dropdown">
Edit User Information <span class="caret"></span>
<ul class="dropdown-menu forAnimate" role="menu">
<li>Personal Information Edit</li>
<li>Driver License Class Edit</li>
<li>Language Edit</li>
</ul>
</li>
<li class="dropdown">
Evaluation <span class="caret"></span>
<ul class="dropdown-menu forAnimate" role="menu">
<li>Pending remarks</li>
</ul>
</li>
</ul>
<div id="sidebar-btn">
<span></span>
<span></span>
<span></span>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>
$(document).ready(function(){
$('#sidebar-btn').click(function(){
$('#sidebar').toggleClass('visible');
});
});
</script>
</body>
</html>
test.css
body{
margin:0px;
padding:0px;
font-family:"Helvetica Neue", Helvetica, Arial;
}
#sidebar{
background:blue;
width:200px;
height:100%;
display:block;
position:fixed;
left:-200px;
top:0px;
transition:left 0.3s linear;
}
#sidebar.visible{
left:0px;
transition:left 0.3s linear;
}
ul{
margin:0px;
padding:0px;
}
ul li{
list-style:none;
}
ul li a{
background:#0000FF;
color:white;
border-bottom:1px solid #111;
display:block;
width:180px;
padding:10px;
text-decoration: none;
}
#sidebar-btn{
display:inline-block;
vertical-align: middle;
width:20px;
height:15px;
cursor:pointer;
margin:20px;
position:absolute;
top:0px;
right:-60px;
}
#sidebar-btn span{
height:1px;
background:white;
margin-bottom:5px;
display:block;
}
#sidebar-btn span:nth-child(2){
width:75%;
}
#sidebar-btn span:nth-child(3){
width:50%;
}
#navbar-toggle collapsed{
background:#0000FF;
}
.navbar {
background:#0000FF;
}
nav.sidebar .navbar-nav .open .dropdown-menu>li>a:hover,
nav.sidebar .navbar-nav .open .dropdown-menu>li>a:focus {
color: white;
background-color: transparent;
}
Here is with working solution for the drop-down menu opening in left instead of in downward position
#sidebar.visible{
left:0px;
transition:left 0.3s linear;
}
ul{
margin:0px;
padding:0px;
}
ul li{
list-style:none;
}
ul li a{
background:#0000FF ;
color:white;
border-bottom:1px solid #111;
display:block;
width:180px;
padding:10px;
text-decoration: none;
}
#sidebar-btn{
display:inline-block;
vertical-align: middle;
width:20px;
height:15px;
cursor:pointer;
margin:20px;
position:absolute;
top:0px;
right:-60px;
}
#sidebar-btn span{
height:1px;
background:white;
margin-bottom:5px;
display:block;
}
#sidebar-btn span:nth-child(2){
width:75%;
}
#sidebar-btn span:nth-child(3){
width:50%;
}
#navbar-toggle collapsed{
background:#0000FF ;
}
.navbar {background:#0000FF ;}
nav.sidebar .navbar-nav .open .dropdown-menu>li>a:hover, nav.sidebar .navbar-nav .open .dropdown-menu>li>a:focus {
color: white;
background-color: transparent;
}
.dropdown-menu {
position: absolute;
top: 0;
left: 180px;
min-width: 180px;
}
Feel free if you need any further help
If you want to position the dropdown static, you can set the dropdown to absolute position.
ul{
margin:0px;
padding:0px;
position:absolute;
left:300px; /* adjust the left based on need */
}
If you want to set dynamic position, Calculate the offset and set left position.Set offset dynamically using javascript

Menu items and social icons do not align correctly

I am trying to load a line of social icons and then underneath that a line of menu items.
The alignment is not 100% right-aligned and in IE. Instead, the menu items get shoved all the way over to the left.
The ideal look on all browsers should be :
Code in a bootply
I'm using bootstrap 2.2.2
HTML:
<div class="row-fluid" id="top-header" style="background: #fff url(http://www.inter-active.co.za/images/background-top.jpg) top center;">
<!-- Navigation -->
<div class="sticky-wrapper" id="navigation-sticky-wrapper" style="height: 108px;">
<div class="navbar navbar-fixed-top" id="navigation">
<div class="container no-padding">
<div id="logo">
<img src="images/logo.png">
</div>
<div class="navbar-inner">
<a class="show-menu" data-target=".nav-collapse" data-toggle="collapse">
<span class="show-menu-bar"></span>
</a>
<div class="nav-collapse collapse">
<ul class="social">
<li class="social"><img alt="" src="http://www.inter-active.co.za/images/twitter.png" ></li>
<li class="social"><img alt="" src="http://www.inter-active.co.za/images/linkedin.png"></li>
<li class="social"><img alt="" src="http://www.inter-active.co.za/images/facebook.png"></li>
</ul>
<br>
<ul class="nav">
<li class="menu"><a class="colapse-menu1" href="#home">Home</a></li>
<li class="menu"><a class="colapse-menu1" href="#sectionA">About Us</a></li>
<li class="menu"><a class="colapse-menu1" href="#solutions">Solutions</a></li>
<li class="menu"><a class="colapse-menu1" href="#news">News</a></li>
<li class="menu"><a class="colapse-menu1" href="#contact-parallax">Careers</a></li>
<li class="menu"><a class="colapse-menu1" href="#contact">Contact Us</a></li>
</ul>
</div>
</div>
</div>
</div>
</div><!--/Navigation -->
</div>
CSS:
#logo {
width:180px;
height:100px;
padding:4px;
position:absolute;
}
#navigation-sticky-wrapper {
height:45px;
}
ul.socials-icons-top li {
width:35px;
height:35px;
display:inline-block
}
ul.socials-icons-top li a {
opacity:0.5;
transition:all 0.3s ease 0s;
-moz-transition:all 0.3s ease 0s;
-webkit-transition:all 0.3s ease 0s;
-o-transition:all 0.3s ease 0s;
}
ul.socials-icons-top li a:hover {
opacity:1;
}
#navigation-sticky-wrapper {
height:120px;
}
.is-sticky {
background-color:#fff;
width:100%;
height:121px;
background: #fff url(../images/background-top.jpg) top center;
width:100%;
}
.navbar-fixed-top .navbar-inner, .navbar-static-top .navbar-inner {
float:right;
margin-right:20px;
}
.navbar-inner {
box-shadow: none !important;
min-height: 45px;
line-height: 20px !important;
transition: all 0.3s ease-out 0s;
border-bottom: none !important;
padding-left: 10px !important;
padding-right: 10px !important;
background: transparent;
margin-top: 55px;
}
.navbar {
position: relative;
float:right;
padding 0 20px;
width:100%
}
li.social {
width:32px;
height:32px;
display:inline-block;
}
ul.social {
float:right;
margin-right:250px;
margin-bottom:2px;
}
.navbar .nav {
width:960px;
text-align:center;
margin: 0 10px 10px 0;
}
.navbar .nav > li {
float:none;
display:inline-block;
width:auto;
}
.navbar .nav > li.menu {
margin-right:5px;
margin-top:5px;
}
.navbar .nav > li > a {
font-family:'Calibri', 'Arial', sans-serif;
text-transform:uppercase;
font-weight:400;
font-size:14px;
color: #e76f25;
display: block;
transition: all 0.3s ease-out 0s;
line-height: 14px;
text-shadow: none;
height:16px;
padding: 0px;
}
ul.menu>li:last-child a {
border:none;
}
.navbar .nav > .active > a, .navbar .nav > .active > a:hover, .navbar .nav > .active > a:focus {
background: none;
box-shadow: none;
color: #222222;
height: 100%;
transition: all 0.3s ease-out 0s;
}
.navbar .nav > li > a:focus, .navbar .nav > li > a:hover {
color: #333;
text-decoration: none;
height: 100%;
transition: all 0.3s ease-out 0s;
}
.navbar .show-menu {
float: right;
width:30px;
margin: 7px 30px 7px 10px;
height: 31px;
padding:2px;
background:url(../images/responsive-menu.png) no-repeat 2px 2px;
background-size:30px 30px;
cursor:pointer;
border-radius:3px;
opacity:0.7;
display:none
}
.navbar .show-menu:hover {
opacity:1;
}
You have added,
a. 250px of right margin for the ul that has the class 'social'.
Figure - 1
b. And 10px of right margin for nav beneath social.
Figure - 2
To align that you need to set the text-align to right add 240px [a - b] of padding-right for nav.
Here is the CSS Code;
.navbar .nav {
margin: 0 10px 10px 0;
padding-right: 240px; /** 250px - 10px **/
text-align: right; /**/
width: 960px;
}
And additionally, there is 5px of right margin for each li in ul has a class of nav. This makes the menu links to be offset to left by 5px.
To fix that you need to add this block of CSS code;
.navbar .nav > li:last-child {
margin-right: 0;
}
Hope this will help. [This is my first Stackoverflow answer ;)]

Pure CSS3 Navigation Menu child level appears behind parent level

I have a Pure CSS3 Navigation Menu where child level appears behind parent level.
Tried to resolve it by playing with z-index and other elements for 5 days now.
Thanks in advance!
Here's the HTML(direction RTL):
<div id="MainNavMenu">
<div id="main_navigation" class="blue main-menu "><!-- START -->
<ul>
<li class="main_list_item"><a class="main_list_link" href="#">Marketing</a>
<ul>
<li>NPA
<li>PMN
<li>NML
<ul>
<li>Document Library</li> <!-- Third Level -->
</ul>
</li>
<li>Cataloges</li>
<li>Price lists</li>
</ul>
</li>
<li class="main_list_item"><a class="main_list_link" href="#">פיתוח</a>
<ul>
<li>Document Library</li>
<li>Project Management</li>
<li>QA</li>
<li>Administration</li>
<li>R&D Mechanics</li>
<li>Catalog</li>
<li>Mtb</li>
<li>Itbs</li>
<li>Eit</li>
</ul>
</li>
<li class="main_list_item"><a class="main_list_link" href="#">משהו</a>
<ul>
<li>מכונות
<ul>
<li>ליב</li>
<li>MSG</li>
<li>Type</li>
<li>DIff</li>
</ul>
</li>
<li>בטיחות
<ul>
<li>נהלי בג"ס</li>
<li>מפרטים</li>
<li>טפסים</li>
<li>איכות הסביבה</li>
<li>בטיחות וגיהות</li>
<li>בריאות וארגונומיה</li>
<li>מידע ותקנים</li>
<li>MSDS</li>
</ul>
</li>
<li>משק ובטחון
<ul>
<li>ספריות מסמכים</li>
</ul>
</li>
<li>אבטחת איכות
<ul>
<li>מדריכי משתמש</li>
<li>מפרטים מחלקתיים</li>
<li>דו"חות מנטי</li>
<li>תעודות איכות</li>
</ul>
</li>
<li>רכש
<ul>
<li>ספריות מסמכים</li>
<li>חוזי ספק</li>
<li>TTR פלדות</li>
<li>FDT השחזה</li>
</ul>
</li>
</ul>
</li>
<li class="main_list_item"><a class="main_list_link" href="#">חברה שלי</a>
<ul>
<li>ספר טלפונים</li> <!-- SECOND LEVEL MENU -->
<li>טלפונים חשובים</li>
<li>פתיחת תקלת מחשוב</li>
<li>פינת נוסטלגיה</li>
<li>ימי הולדת</li>
<li>שערי מטבע</li>
<li>המתבח של ישקר</li>
<li>אירועים</li>
<li>ספריות מסמכים</li>
<li>משאבי אנוש
<ul>
<li>טפסים</li>
<li>מסמכי ביטוח</li>
<li>מידע והטבות</li>
<li>נהלים</li>
<li>הודעות</li>
<li>אירועים</li>
</ul>
</li>
</ul>
</li>
</ul>
</div> <!-- MAIN NAVIGATION END -->
</div>
Here is CSS:
/**************************************
Navigation Menu
***************************************/
#MainNavMenu
{
left: 1040px;
top: 70px;
position: absolute;
width: -moz-fit-content;
width: -webkit-fit-content;
width: fit-content;
margin: auto;
height: 18px;
z-index:3;
}
#main_navigation{
width: -moz-fit-content;
width: -webkit-fit-content;
width: fit-content;
margin: auto;
font-size:8px;height:20px;float:right;
outline:none;
margin-bottom:250px;
box-shadow:1px 0px 2px rgba(0,0,0,0.5);
opacity: 1;
border-radius:5px;
}
.main-menu{position:relative;z-index:7;font-family: 'Ariel', tahoma, serif;letter-spacing:0pt; solid;}
.main-menu ul li a, .main-menu ul li a:link, .main-menu ul li a:visited{border-bottom:4pt solid transparent;padding-bottom:1px}
.main-menu ul {
margin:0;
padding:0px;
list-style-type:none;
z-index:5;
border-radius:5px;
}
.main-menu ul li {
position:relative;
display:inline;
float:right;
z-index:4;
}
/*Second level settings*/
.main-menu ul li > ul {
z-index:2;
visibility:hidden;
display:inline;
opacity:0;
padding:0px;margin:0px;
position:absolute;
/*width: -moz-fit-content;
width: -webkit-fit-content;
width: fit-content;*/
width: 150px;
top:25px;
right:40px;
color:#FFFFFF;
-webkit-transition:all 0.3s ease-in-out;
-moz-transition:width 0.3s ease-in-out;
-o-transition:all 0.3s ease-in-out;
transition:all 0.3s ease-in-out;
}
/*on hover over second level - third level appears*/
.main-menu ul li ul li:hover > ul {
display:block;
visibility:visible;
right:50px;
top: 15px;
opacity: 1;
z-index: 9999;
}
.main-menu ul li:hover > ul {
display:block;
visibility:visible;
right:0px;
display:block;
opacity:1;
}
.main_list_item {
height:20px;
z-index:0;
}
.main-menu ul li a.main_list_link,.main-menu ul li a.main_list_link:link{
line-height:20px;
text-shadow:none;
font-size:12px;
text-transform:uppercase;
}
.main-menu ul li > a {
display:block;
text-decoration:none;
overflow:hidden;
padding:0px 15px;
border-radius:3px;
}
* html .main-menu ul li a {
display:inline-block;
}
.main-menu ul li ul li {
display:list-item;
float:right;
border-left:none!important;
color:#FFFFFF;
padding:0px;margin:0px;
}
.main-menu ul li ul li a {
margin:0px;
-webkit-transition:all 0.3s ease-in-out;
-moz-transition:width 0.3s ease-in-out;
-o-transition:all 0.3s ease-in-out;
transition:all 0.3s ease-in-out;
}
.main-menu ul li ul li{
-webkit-transition:all 0.3s ease-in-out;
-moz-transition:all 0.3s ease-in-out;
-o-transition:all 0.3s ease-in-out;
transition:all 0.3s ease-in-out;
border-bottom:solid 1px #ececec;
width:100%;
}
.main-menu ul ul {
background:#FFFFFF;
border:1px solid #e0e0e0;
-moz-box-shadow:0px 3px 3px rgba(0,0,0,0.1);
-webkit-box-shadow:0px 3px 3px rgba(0,0,0,0.1);
box-shadow:0px 3px 3px rgba(0,0,0,0.1);
z-index:9;
color:#707070;
}
.main-menu ul ul li a,.main-menu ul ul li a:visited,.main-menu ul ul li a:link {
height:100%;
text-transform: capitalize;
margin-right:0px!important;
margin-left:0px!important;
font-size:12px;
color:#707070;
z-index:10;
background-color: #FFFFFF ;
}
/*TEMP*/
/*TEMP*/
.main-menu ul ul li:hover > a{
cursor:pointer;
text-decoration:none!important;
padding-right:30px;
right: 40px;
z-index:11;
}
.main-menu ul ul li > a:after{
content:"";
opacity:0;
position:absolute;
right:20px;top:26px;
width: 0;
height: 0;
border-top: 6px solid transparent;
border-bottom: 6px solid transparent;
border-right:5px solid #FEFEFE;
-webkit-transition:all 0.2s ease-in-out;
-moz-transition:all 0.2s ease-in-out;
-o-transition:all 0.2s ease-in-out;
transition:all 0.2s ease-in-out;
z-index:12;
}
/*arrow pointer inside menu item*/
.main-menu ul ul li:hover > a:after{
content:"";
opacity:1;
position:absolute;
right:0px;top:5px;
width: 0;
height: 0;
border-right:5px solid #FEFEFE;
}
.main-menu ul ul ul {
position:absolute;
right: 100px;
top :20px;
}
/***********
Menu Color
************/
/* BLUE */
.blue{
background:#148cfc;
/*border:2px solid #ffd017;*/ /*yellow border*/
}
.blue ul ul{
border-top:2px solid #ffd017;
width:99%;
}
.blue ul ul li:hover > a{
text-decoration:none!important;
color:#FFF!important;
background:#148cfc;
padding-right:30px;
text-shadow:1px 0px 0px #3080b0;
}
.blue ul li a{
color:#FFFFFF;
}
.blue ul li > a:hover,.blue ul li:hover > a{
color:#ffd017!important;
}
/*menu items separator*/
.blue .main_list_item:after{
content:"";
z-index:-1;
position:absolute;
border-right:1px solid #e9e9e9;
box-shadow:1px 0px 0px #057794;
height:15px;
top:3px;
background:#FFF;
}
/*FIXING border */
.main_list_item:first-child:after{
border-right:none;
}
/**************************************
End Of Navigation Menu
***************************************/

Fixed CSS positioning of nav menu on floating navbar

visualisation of problem: http://tinyurl.com/q83t89y
Is there a way to have the browse button to stay on the exact location that it is now?
For example if I resize my window or zoom in / out the browse button leaves its location.
Here is the css:
<style>
ul.Nav2 {
list-style-type:none;
margin:0 auto;
padding:0;
overflow:hidden;
width:auto;
}
ul.Nav2>li {
position:fixed;
top:0;
right: 25%;
padding:0px;
width:100px;
height:20px;
margin:10px;
z-index: 9999;
float: right;
}
ul.Nav2 li a {
font-family:"Arial";
font-size:15px;
color:#FFF;
display:block;
width:auto;
height:35px;
line-height:20px;
/*removed
text-align:center;
*/
text-decoration:none;
opacity:0.6;
padding:0px 10px;
;
;
;
-o-transition:all 0.2s ease-in-out;
transition:all 0.2s ease-in-out;
}
ul.Nav2 li a:hover {
opacity:1;
}
ul.Nav2 ul {
list-style:none;
position:absolute;
left:-9999px;
text-align:right;
float:right
/*added*/
display:block;
padding:0;
min-width:9.3ex;
}
ul.Nav2 ul li {
padding-top:1px;
float:none;
}
ul.Nav2 ul a {
white-space:nowrap;
}
ul.Nav2 li:hover ul {
left:inherit;
}
ul.Nav2 li:hover a {
text-decoration:none;
}
ul.Nav2 li:hover ul a {
text-decoration:none;
}
ul.Nav2 li:hover ul li a:hover {
}
</style>
The problem is that ul.Nav2>li has been positioned to the right side of the browser. I think you should leave it alone and...
Create a fixed container <div> like radio bar. (Green box in the example below)
Set an invisible <div> in the center of container. (Red box)
Position the Browse menu to the centered box. (Blue box) Use margin-left to avoid overlapping the radio-bar.
Example: http://jsfiddle.net/Stocki/ZGzb6/

CSS menu drops up instead of down

I have a CSS drop down menu that drops up instead of down. What could be wrong? here is the code and the aspx tags related to the problem. this is inside the master page; also on the pages inside ContentPlaceHolder1 eveything inside tags!
.wrapper {
position:relative; height:25px;
}
.mainmenu {
z-index:100;
font-family:Verdana, Geneva, sans-serif;
font-weight:normal;
font-size:90%;
line-height:25px;
left:50%;
margin-left:-303px;
width:606px;
}
ul.menu {
padding:0;
margin:0;
list-style:none;
width:100px;
overflow:hidden;
float:left;
margin-right:1px;
}
ul.menu a {
text-decoration:none;
color:#fff;
padding-left:5px;
position:absolute;
}
ul.menu li.list {
float:left;
width:250px;
margin:-32767px -125px 0px 0px;
background:url(images/top1.png) no-repeat left bottom;
}
ul.menu li.list a.category {
position:absolute;
z-index:50;
display:block;
float:left;
width:120px;
margin-top:32767px;
background:transparent;
}
ul.menu li.list a.category:hover,
ul.menu li.list a.category:focus,
ul.menu li.list a.category:active {
margin-right:1px;
background-image:url(images/tophover1.png);
background-repeat:no-repeat;
background-position:left top;
}
ul.submenu {
float:left;
padding:25px 0px 0px 0px;
margin:0;
list-style:none;
background-image:url(images/tophover1.png);
background-repeat:no-repeat;
background-position:left top;
margin:-25px 0px 0px 0px;
}
ul.submenu li a {
float:left;
width:120px;
background:#369;
clear:left;
}
ul.submenu li a.endlist {
background:url(images/bottom1.png);
}
ul.submenu li a.endlist:hover,
ul.submenu li a.endlist:focus,
ul.submenu li a.endlist:active {
background:url(images/bottomhover1.png);
}
ul.submenu a:hover,
ul.submenu a:focus,
ul.submenu a:active {
background:#900;
margin-right:1px;
}
// and here is the portion of aspx
<div id="slidemenu" >
<ul id="nav">
<li>Home</li>
<li>History</li>
<li>....</li>
<li>Careers</li>
<li>Contact</li>
<li><span> ... </span> </li>
<li class="list">
<a class="category" href="....aspx"> ... </a>
<ul class="submenu" >
<li>1st drop down menu</li>
<li>2nd drop down menu</li>
</ul>
</li>
</ul>
</div>
<!-- ------------ -->
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
Apply this css to your menu text blocks:
-webkit-transform: rotate(180deg);
-moz-transform: rotate(180deg);
-ms-transform: rotate(180deg);
-o-transform: rotate(180deg);
transform: rotate(180deg);
You should post some code, but I wrote something that may help:
see it in action:
http://jsfiddle.net/HE8uj/
pasted code:
<div class="menu">
<em>hover me!</em>
<ul>
<li> item one </li>
<li> item two </li>
<li> item three </li>
</ul>
</div>
.menu {
font-size: 12px;
width: 100px;
background: #eee;
border: solid 1px black;
margin:1px;
height:20px;
position:relative;
}
.menu * {
display:block;
padding:0; margin:0;
}
.menu em {
padding:5px;
}
.menu ul {
display:none;
}
.menu:hover ul {
display:block;
position:absolute;
width:100%;
bottom:100%; /* change to TOP and it will drop down */
border:solid 1px black;
background: #fff;
}
.menu li {
padding:5px;
}

Resources