TD font assignment, text boxes, & NN4
Hello all,
I want to define the TD tag font because netscape ignores the body font while in tables. So what I decided to do is just use my specs for the body tag and define the td tag. I find a problem when I have a textbox in the TD tag though. Netscape 4 makes the length of the box very long, way beyond my "size" attribute. NN6 works fine, as does IE.
Anybody know a way around this problem? Is there a better way to define the default font that will work in 4.0+ browsers?
Any comments appreciated!
AndyB posted this at 22:50 — 18th December 2000.
They have: 344 posts
Joined: Aug 1999
To get the same 'box' size with IE/NN4, define the size of the input box in two ways, for example:
input type=text size=30 style="width: 180px">
Note: may vary at different screen sizes.
Mark Hensler posted this at 06:02 — 19th December 2000.
He has: 4,048 posts
Joined: Aug 2000
Hey Alch, Welcome to TWF!
as far as the problem goes... I don't even have NN installed, so I'm of no use. sorry.
Alch posted this at 14:40 — 19th December 2000.
They have: 3 posts
Joined: Dec 2000
Andy,
I am setting the size of the box using the size tag. I even tried using that width style but that made no difference. Check out my code, I made a simplifed version of my form for you to check out:
http://www.1strepublic.com/new/test.html
this looks fine in IE and NN6, but not in NN4. If i remove the style from the code, it works fine in NN4.
If there's anything wrong with my code, please let me know. This is starting to piss me off. Thanks.
Oh, and thanks for the welcome Max
AndyB posted this at 15:09 — 19th December 2000.
They have: 344 posts
Joined: Aug 1999
http://www.halfadot.com/temp/formsize.gif tells all:)
The input boxes are given two definitions - NN uses one and IE uses the other. One unit of size=8 pixels
Alch posted this at 15:17 — 19th December 2000.
They have: 3 posts
Joined: Dec 2000
Thanks for the quick reply Andy, but that doesn't seem to help. I added the style width to the page, and it still looks the same. As I stated before, the problem arises when I define the TD tag to have a certain font. I've tried using different fonts with the same results. If I remove the style from the TD tag, the form looks fine in NN4. Are you viewing the page in NN4?
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.