<html>
<body>
This should be level with the middle of the box!
<textarea id="id" name="name" rows="9" cols="50">Text is in here!</textarea>
</body>
</html>
Picture of what this ends up looking like.
How do I make it so that the text to the left of the box stays level with the middle of the box, even if it's being dragged around? Can it be done with CSS, or will it require Javascript?
The easiest way (if you want to avoid tables) is to float your label and set its line-height equal to textarea height:
See http://jsfiddle.net/pctVh/2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With