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

195
Visualizações
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 Respostas
Responde à pergunta

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 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