controlling text input box size

andyn20's picture

They have: 52 posts

Joined: Jun 2001

I'm having a nasty time trying to control text input box size as in:

It's double the size in netscape 4.x (size=10 looks like size=20)

I.E 6.0 automatically adds (I think) a break (blank line) at the top and bottom of the form.

I want to standardize the "look" between Opera, IE and N.S. 4.x

I've tried using CSS to specify height/width but it falls apart in Netscape 4.x

Does anybody know how to do this?

Thanks for any help

Andrew

They have: 27 posts

Joined: Aug 2001

You could use javascript to determine the browser and set the textbox size accordingly. If your using server side script like asp or php your could also use that.

mairving's picture

They have: 2,256 posts

Joined: Feb 2001

You could also try putting a font tag around your textbox tag like so:

Generally, you can fiddle around with it enough to get it to an acceptable width.

Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states

andyn20's picture

They have: 52 posts

Joined: Jun 2001

Thanks again for the tips

I'll try both of the suggestions

Thanks again
andrew

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.