html - Move the button with textarea -
html - Move the button with textarea -
probably thi simple question. i'm new css , javascript. have button below textarea , want button move along textarea when extend it! how can this?
to align button textarea corner , maintain in same relative position while expand contract, seek next :
first of all, html code :
<form> <textarea></textarea> <p> <input type="reset"/> <input type="submit" value="submit"/> </p> </form> then, add together css property :
form { position: relative; display: inline-block; } form textarea { min-width: 140px; } form p { margin: 0; padding: 0; display: block; text-align: right; } finally, here jsfiddle.
enjoy day!
html css html5 css3 textarea
Comments
Post a Comment