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

179
Visualizações
How to find the actual size of a partially hidden element

I'm creating a carousel, using a div for the outer container and a ul for the inner container. The ul is wider than the div, and the div uses overflow-x: hidden to hide the excess of the ul, as shown below.

enter image description here

My question is, how do I find the actual width and position of the ul?

Using getBoundingClientRect(), I get numbers that don't seem to make sense. For example, the .right value when the ul is fully displayed is greater than the screen width. The width always returns the same as the width of the parent div.

How do I find out about the 'hidden' portion of the inner ul?

Thanks in advance!

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