By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,261 Members | 1,658 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,261 IT Pros & Developers. It's quick & easy.

Length of textfields (input type='text')

P: n/a
Any way to define the length of a textfield?

I have just set all the field with a width so that they look like clear
and easy to read,
However, When I see the page of mac os, They are totally not the result
in IE of FF,
Does there any way to define it absolutely?

I have already change the size attribute and set the width of the
input.

Thank you

Jul 25 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

Cylix wrote:
Any way to define the length of a textfield?
Yes, use the maxlength attribute - but I don't think that's what you
are after. You can suggest various style attributes using normal HTML
and CSS.

I have just set all the field with a width so that they look like clear
and easy to read,
However, When I see the page of mac os, They are totally not the result
in IE of FF,
Both IE and Firefox are available on Mac OS. Your problem is probably
a result of you trying to constrain the display using the wrong
approach. In any case, JavaScript is not the best solution.

Does there any way to define it absolutely?
That is the wrong approach.

I have already change the size attribute and set the width of the
input.
You're lost, JavaScript is not the answer. Try:

news:comp.infosystems.www.authoring.stylesheets
<URL:
http://groups.google.com/group/comp....s?lnk=li&hl=en
>
comp.infosystems.www.authoring.html
<URL:
http://groups.google.com/group/comp....l?lnk=li&hl=en
>
--
Rob

Jul 25 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.