4
When I mouse the button and see the content I can’t use the scroll bar, simply hide the content, someone can give a help?
ul>li {
list-style-type: none;
}
ul li:hover .mostrar {
opacity: 1;
height: 150px;
overflow: auto;
}
.mostrar {
background: #CCC;
height: 15px;
overflow: hidden;
position: relative;
margin-top: 0px;
opacity: 0;
height: 15px;
font-size: 13px;
overflow: hidden;
}
.conteudo-meio {
width: 370px;
position: absolute;
left: 20px;
z-index: 999999;
}
<ul>
<li>
<section class="conteudo-meio">
<a href="#">Passar o mouse no menu</a>
<div class="mostrar">
<p>Item 1</p>
<p>Item 2</p>
<p>Item 3</p>
<p>Item 4</p>
<p>Item 5</p>
<p>Item 6</p>
<p>Item 7</p>
<p>Item 8</p>
</div>
</section>
</li>
</ul>
tried to comment line:
overflow: hidden;
which is declared 2x in.mostrar
?– JcSaint
Yes I tested here, but nothing has changed.
– Samuel Souza
when I executed your code, appeared the scrollbar and content...]
– JcSaint
@Jcsaint the problem is when they put the mouse on top of the scroll bar, the content closes.
– Mathiasfc
That when you hover over the scroll bar, close the content, that’s the problem.
– Samuel Souza
I could not reproduce the problem, for me appeared the scroll bar and if I stop the mouse on top of the bar the content is still there :/ I’m using Mozilla Firefox 52
– BrTkCa
The error is in Chrome, firefox worked normal too
– Samuel Souza
Samuel, click on the "active" content and you can scroll (maybe knowing this solves the problem). EDIT: Actually works the scroll of the mouse the bar even does not give rs
– William Pereira