I've been struggling to adjust the width of a textarea element, as neither setting rows and cols in HTML nor using CSS has worked for me. The height adjustment was successful with HTML.
Any tips on changing the width?
form,
label {
position: relative;
width: 310px;
margin-left: 65px;
}
input,
textarea {
border-radius: 4px;
line-height: 30px;
flex: 0 0 200px;
margin-left: 10px;
height: 35px;
}
label,
input,
textarea {
display: block;
margin-top: 20px;
margin-right: -300px;
}
form {
margin-top: 100px;
margin-left: 580px;
display: block;
margin-top: 20px;
}
<div class="text-area"><label class="l-message">Message * <textarea name="message" type="textarea" class="message" style="height: 105px;" required></textarea></label></div>