View Full Version : Same size textbox

04-27-2005, 08:19 AM
How do you make a textbox appear the same size in Mozzila and IE, I will setup a textbox and it will accept like 3 chars then when I view in mozilla it is huge.. How can I do this in CSS?


04-27-2005, 08:42 AM
I don't think you CAN do it in CSS. My guess is you'll need to detect the browser, and then set the text area size to suit.

04-27-2005, 10:58 AM
I'm not sure this will be exactly the same in all browsers, however you can set the width and height like so...

<input type="text" name="blah" style="width:100px; height:30px;" />

04-27-2005, 11:55 AM
I will check it when I have access but I believe I set width and all is well in IE and then in mozzilla it grows long... For example I have 5 fields on an input field if they grow big the line gets all messed up..


05-27-2005, 12:48 PM
Chromate, Thanks simple enough, width: px seems to do just fine.