Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

142
Visualizações
Controlling Overflow of Fixed Positioned Div

Trying to show items out of fixed positioned div. As shown in the picture half of the menu items are hidden inside the div. The vertical overflow is set to scroll but the horizontal overflow is set to visible but no items are visible outside the box.

I am not sure if this is even possible?

enter image description here

body {
  background: #fefe
}
.bg-menu-container {
  background: black
}
.bg-menu-container {
    height: 140px;
    width: 200px;
position: relative;}

.bg-menu-container ul li a {
    display: inline-block
    padding: 10px 10px
    background: #dee
}

.bg-menu-container {
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
overflow-x: visible;}

::-webkit-scrollbar {
    /* WebKit */
    width: 0;
    height: 0;
}
.bg-menu-container .sub-menu {
 display: none;
  position: absolute;
    left: 140px;
  background-color: #ffffff;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;

}

.bg-menu-container ul li:hover .sub-menu {
    display: block;
}
<div class="bg-menu-container">
<ul>
<li><a href="#">  Home 00 </a><ul class="sub-menu">
<li><a href="#">  Sub-Home 00 </a></li>
<li><a href="#">  Sub-Home 01 </a></li>
<li><a href="#">  Sub-Home 02 </a></li>
<li><a href="#">  Sub-Home 03 </a></li>
</ul></li>
<li><a href="#">  Home 01 </a></li>
<li><a href="#">  Home 02 </a></li>
<li><a href="#">  Home 03 </a><ul class="sub-menu">
<li><a href="#">  Sub-Home 00 </a></li>
<li><a href="#">  Sub-Home 01 </a></li>
<li><a href="#">  Sub-Home 02 </a></li>
<li><a href="#">  Sub-Home 03 </a></li>
</ul></li>
</ul>
</div>
Please scroll ... 

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

emphasized textthe view

enter image description here is that what you want? Try not to use overflow and height to him

And the code here:

#myBody {
  background: #fefe
}
.bg-menu-container {
  background: black
}
.bg-menu-container {
    /* height: 140px; */
    width: 200px;
    position: relative;
    top: 0;
    left: 0;
    /* overflow-y: scroll; */
}

.bg-menu-container ul li a {
    display: inline-block;
    padding: 10px 10px;
    background: #dee;
}


::-webkit-scrollbar {
    /* WebKit */
    width: 0;
    height: 0;
}
.bg-menu-container .sub-menu {
 display: none;
  position: absolute;
    left: 140px;
  background-color: #ffffff;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;

}

.bg-menu-container ul li:hover .sub-menu {
    display: block;
}
<template>
  <div id="myBody">
    <div class="bg-menu-container">
<ul>
<li><a href="#">  Home 00 </a><ul class="sub-menu">
<li><a href="#">  Sub-Home 00 </a></li>
<li><a href="#">  Sub-Home 01 </a></li>
<li><a href="#">  Sub-Home 02 </a></li>
<li><a href="#">  Sub-Home 03 </a></li>
</ul></li>
<li><a href="#">  Home 01 </a></li>
<li><a href="#">  Home 02 </a></li>
<li><a href="#">  Home 03 </a><ul class="sub-menu">
<li><a href="#">  Sub-Home 00 </a></li>
<li><a href="#">  Sub-Home 01 </a></li>
<li><a href="#">  Sub-Home 02 </a></li>
<li><a href="#">  Sub-Home 03 </a></li>
</ul></li>
</ul>
</div>
  </div>
</template>

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda