Removendo a fronteira textarea em HTML
Pergunta
Eu estou trabalhando com o elemento textarea
em HTML e quiser remover a borda da caixa. Eu também quero alinhar o texto no fundo do meu textarea
.
Solução
Adicione isto a sua <head>
:
<style type="text/css">
textarea { border: none; }
</style>
Ou fazê-lo diretamente no textarea:
<textarea style="border: none"></textarea>
Outras dicas
Em CSS:
textarea {
border-style: none;
border-color: Transparent;
overflow: auto;
}
Este é grande:
<style type="text/css">
textarea.test
{
width: 100%;
height: 100%;
border-color: Transparent;
}
</style>
<textarea class="test"></textarea>
textarea {
border: 0;
overflow: auto; }
menos CSS ^ você não pode alinhar o texto à parte inferior infelizmente.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow