-1
Sorry for the lack of information: in the example of the code below, when you hover over the menu, the sub-menu Stop below the menu, do not know how to appear above the menu, who knows and want to help, I thank.
<!DOCTYPE html>
<head>
<link rel="stylesheet" href="_css/infor.css">
<meta charset="UTF-8"/>
<title>MenuEx</title>
</head>
<body>
<style type="text/css">
/*Formatação*/
.menuhorizontal2{
margin: 0;
padding: 0;
width: auto;
height: 30px;
}
.menuhorizontal2 ul{
list-style: none;
}
.menuhorizontal2 li{
width: 80px;
padding:0px;
margin: 0;
position: relative;
display: inline;
float: left;
border-left: #999999 thin solid;
}
.menuhorizontal2 li ul{
display: none;
padding: 0;
margin: 0;
position: absolute;
top: 35px;
left: 0;
}
/*nível inferior do menu com display: none*/
.menuhorizontal2 a{
display: block;
text-decoration: none;
padding: 7px;
background-color: #CCCCCC;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: 400;
}
/* formatação da âncora e área clicável*/
.menuhorizontal2 li:hover ul, li.hover ul{
display: block;
}
.menuhorizontal2 li:hover ul, li.over ul{
display: block;
}
</style>
<ul class="menuhorizontal2">
<li><a href="#">Menu_1</a>
<ul>
<li><a href="#">SubM_1</a></li>
<li><a href="#">SubM_2</a></li>
<li><a href="#">SubM_3</a></li>
</ul>
</li>
<li><a href="#">Menu_2</a>
<ul>
<li><a href="#">SubM_1</a></li>
<li><a href="#">SubM_2</a></li>
<li><a href="#">SubM_3</a></li>
</ul>
</li>
</ul>
</body>
Could you elaborate more how you expect this menu to be and what you mean by going up? Do you want to make a navbar?
– Lucas Nascimento
Please, clarify your specific problem or add other details to highlight exactly what you need. The way it’s written here, it’s hard to know exactly what you’re asking. See the [Ask] page for help clarifying this question. You can start by sharing what you’ve tried.
– Diego Rafael Souza