Name of the textarea appears at bottom
I have a textarea named(not the attribute of textarea;but its name ) Summery . But the name app开发者_Go百科ears at bottom ,and I want it to display in the mid or top . HOw can I achieve this ?
<div class="edit_i">Pitch Summery :<textarea>{$k->pitch_summery}</textarea></div>
Are you referring to the "Pitch Summery" text?
make sure that the div has vertical-align:top; css property
.edit_i textarea{
vertical-align:top;
}
http://jsfiddle.net/TrdbC/1/
Just a quick example.
<style>
.label {
display: block;
}
</style>
<label for='textarea' class='label'>Pitch Summery</label>
<textarea value="{$k->pitch_summery}" id='textarea'></textarea>
精彩评论