businessman332211@hotmail.com Posted June 5, 2006 Share Posted June 5, 2006 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 More sharing options...
justsomeguy Posted June 5, 2006 Share Posted June 5, 2006 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 More sharing options...
businessman332211@hotmail.com Posted June 5, 2006 Author Share Posted June 5, 2006 hmm what is better. I rely on CSS, alot but I think I will be safe relying on size for this, I just have to make sure it's not deprecated, thanks for the help, I didn't think of that, I appreciate it. Link to comment Share on other sites More sharing options...
justsomeguy Posted June 5, 2006 Share Posted June 5, 2006 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 More sharing options...
businessman332211@hotmail.com Posted June 5, 2006 Author Share Posted June 5, 2006 actually I didn't think of that, thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now