Jquery addClass() using vertical-align css property -


i have input box, pretty twitter (i using bootstrap). when pressing it, want expand, does. problem placeholder , input text start in middle. have tried several ways change without success:

  1. $(this).css({"height":"80px","vertical-align":"top"});

  2. addclass method

can me find solution?

thanks in advance!

vertical-align doesn't work text inputs.. try setting padding instead. don't need set height either, use bottom padding force text top. if want multiple lines consider using textarea instead.

$(this).css({"padding-bottom":"60px"});

demo on bootply


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -