Something like this?
body { font-size:14px; } .form-control { display:inline-block; position:relative;} label { text-align:right; background-color:white; right:5px; top:-5px; position:absolute;} textarea { display:block; }
<div class="form-control"> <label for="#myTextArea">My Label</label> <textarea>My text area</textarea> </div>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.