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

188
Vistas
Input Element - Align Content that Overflows Left on Blur

If you have a text input of a certain length and you set the content in it longer than the area, how can you have the content always align left in the text box on blur? Even if you manually go to the cell, scroll to the right side and then leave.

<input type="text" style="width:100px" value="356 Must Read Number Ave New York, NY">

You should always be able to read "365 Must ..." in the beginning of the input? text-align:left; doesn't seem to work.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

let el = document.querySelector("input") 
el.addEventListener("focusout",function (e) {
    el.scroll(0,0)  //first one x-coord, second one y-coord
})

Element.scroll() might be helpful

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