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

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -