I'm working with the textarea
element in HTML and want to remove the border of the box. I also want to align the text in the bottom of my textarea
.
Removing the textarea border in HTML
textarea {
border: none;
outline: none;
}
That won't remove the scroll buttons in IE. My solution should cover that. –
Ansley
In CSS:
textarea {
border-style: none;
border-color: Transparent;
overflow: auto;
}
@Ansley is it possible to include how to do this directly inside the
<textarea>
tag itself? –
Amabel @user5783745: you can just put it in a
style
attribute: <textarea style="border-tyle: none; border-color: Transparent; overflow: auto"></textarea>
–
Ansley This one is great:
<style type="text/css">
textarea.test
{
width: 100%;
height: 100%;
border-color: Transparent;
}
</style>
<textarea class="test"></textarea>
Also, you can remove the resize icon
textarea {resize:none;}
textarea {
border: 0;
overflow: auto; }
less CSS ^ you can't align the text to the bottom unfortunately.
© 2022 - 2024 — McMap. All rights reserved.