开发者

how to make an input element large

I have two input elements.

One is to put your email and the other is the email text.

开发者_开发知识库

How do I make the email input big enough to put a lot of text in it and be able to space down and stuff?

thanks

<form method="post" action="ttp.actions.emailAction.action">

                                    <h3>Email</h3>
                                <input name="email" id="email"/><br /><br />
                                <h3>Message</h3>
                                <input name="message" size="50" id="message"/>

                                <br />
                                <br />
                                <input type="submit" value="  Send  "/>

                                </form> 


use textarea instead of input

<textarea name="email" id="email" rows="25" cols="80">Write stuff here...</textarea>

instead and you can set the size and other properties (scrolling etc...) using CSS.

textarea{
    width: 640px;
    height: 200px;
}


Check out the size attribute.

<input type="text" size="25" />


Use textarea for large texts instead of input fields:

<textarea rows="5" cols="25"></textarea>


Here is an example of different methods to make input larger

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜