horizontal align in textarea
by adrien boufflet
HTML
<textarea class="mytext"> type text here</textarea>
<input class="line"></input>
<a class="line-info"> horizontal align of text area</a>
CSS
.mytext{
resize: none;
padding-top: 30px;
width: 280px;
height: 150px;
font-size: 20px;
text-align: center;
}
.line{
height: 1px;
width: 300px;
border: solid 1px red;
position: absolute;
left: 0px;
top: 95px;
z-index: 1;
}
.line-info{
position: absolute;
padding-left: 30px;
top: 90px;
z-index: 2;
}