Click to See Complete Forum and Search --> : Firefox issue: how do i control the size of <input type="text">


decibel
10-10-2005, 01:23 PM
Hello. I am trying to create a form, and i cant seem to change the size of my text input boxes in Firefox, IE uses size="", but i cant seem to get it to work in firefox, any suggestions, thanks in advance.

<input type="text" name="topsecret" size="40"> // works in IE, not in Firefox

drhowarddrfine
10-10-2005, 01:27 PM
Well, it's html so it should work fine. It works for me. Are you using a doctype?

decibel
10-10-2005, 01:32 PM
i have this now, but it still isnt' working:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>

konithomimo
10-10-2005, 02:24 PM
Don't forget to include the value.

<input type=TEXT name="topsecret" value ="" size=40>

decibel
10-10-2005, 02:34 PM
arggg, still now working!!! I have value="", and i have doctype

felgall
10-10-2005, 02:41 PM
That code should work so the reason why it isn't must lie elsewhere. Can you supply a link to the page so that we can take a look?

decibel
10-10-2005, 02:45 PM
well it looks like your right, the problem is probrably somewhere else. Unfortunately, the site im workin on is for a client that i have a NDA with, so i cant show the page, but i will try to figure it out, or post what i can when i get a chance, thanks guys for the assistance. This is my favorite forum.

tegraphix
10-10-2005, 07:00 PM
Since you are using XHTML you should try keeping all the tag info in lowercase and put quotes around all values. It's sometimes the small things that could break the page.