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

144
Visualizações
CSS input box cutting off text

I am having an issue where the text in this input box is being cut off. I've increased the height and the width and it is still showing the same amount of characters. I've also used page-break-after: always and the issue is not being fixed. Here is the code:

    input[division]{
        font-size: 13px;
        height: 70px;
        resize: none;
        text-align: center;
        page-break-after: always
        
    }
<div><p><b><br>Division:</b><input id='transfer_out_division' type='text' value="EMD - AFC Program & Information Management" top required division></input></p></div>

I would like the text to go to the next line once it reaches the end of the input box. I was trying to make the input box at least 3 lines long. It fits perfectly with but I do not want to use that element as when I go to print, it prints a line lower and I found it difficult to fix. Input seems as the easiest way to get the printing constraints as consistent as possible.

This is what the printing properties produces when I use textarea: enter image description here

I would like this to be on the same line for space purposes. How would I fix this?

about 4 years ago · Juan Pablo Isaza
3 Respostas
Responde à pergunta

0

As above...use a textarea

    #textarea {
  display: flex;
  align-items: center;
}

#transfer_out_division {
  font-size: 13px;
  margin-left: 30px;
}
<div id="textarea">
<div><p>
  <b>Division:</b>
</p></div>
  <textarea id='transfer_out_division' type='text'
    placeholder="EMD - AFC Program & Information Management" top required division></textarea>
  </div>

You will just need to play around with this I have swapped the value for a placeholder so you can see the content.

about 4 years ago · Juan Pablo Isaza Relatório

0

Although not ideal, I would add min-width: to your CSS, forcing the input tag to have a minimum width of your choice. For example: min-width: 20%;

about 4 years ago · Juan Pablo Isaza Relatório

0

You can also make it so the height and width are equal to fit-content

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