开发者

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜