Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

173
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda