Jump to content

Text input field


Recommended Posts

SOLVED-thanks to just some guy. Thank you for the help.I am trying to set up a longer text field here.I can't get it to work properly, I was thinking of using text-area but I want to avoid that because it will always show a scroll bar there, and I didn't want that. What I wanted was to just increase the length of it, let me know if you have any advice.Websiteit's at the top right hand corder, where it asks to search, my client is wanting me to be able to increase the length of the text area, how do I do that.

Link to comment
Share on other sites

You can either use CSS to specify width, or you can use the size attribute.<input type="text" size="50" maxlength="10" />Maxlength can be smaller than size. Or this:<input type="text" style="width: 200px;" />

Link to comment
Share on other sites

I think they are pretty equivalent. But the CSS way is more static than using size, because size counts on the font size as well. size=50 means show 50 characters, so if that's font size 10pt or 20pt, the field will be different sizes physically. But 200 pixels is always 200 pixels.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...