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

160
Visualizações
How to change the background color of whole scrollbar region to transparent

Here I've made the scrollbar's track take up less space than I'd normally have it take up. I do however want there to be a small region above and below the track which is not taken up by the track itself so the track can be an capsule-shaped container.

unwanted scrollbar color behavior

Sorry for the poor color contrast, but notice here that this region is a different color than the footer beside it. It's taking on the color of my body. I want this to be transparent so the color behind it comes through. Is this possible?

The relevant CSS:

::-webkit-scrollbar {
  width: 1.375rem;
  background-color: transparent; // doesn't work. it just inherits color of body
}

::-webkit-scrollbar-track {
  background: black;
  border-radius: 10px;
  margin: 2rem 0;
}

::-webkit-scrollbar-thumb {
  background: red;
  border-radius: 10px;
}

Edit: This scrollbar is for the whole page

about 4 years ago · Juan Pablo Isaza
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