[thelist] Browser Detect - IE6 = NN4?
Bruce Heerssen
bruce at heerssen.com
Sun Jan 13 10:38:38 CST 2002
Ken Kogler wrote:
<snip>
>Anybody know a better browser dectection method to separate the Netscape
>4.X users? (I'm using this script to decide on a size for my <input>
>elements. NN4.x users get half the value of everyone else.)
>
There is a better way to do this. Since NN4 doesn't take CSS styles on
input elements, you can set the size attribute of your input elements to
a good size for NN4, and then set a width for them using CSS -- other
browsers will pay attention to the CSS over the inline size attribute.
This neatly side-steps browser detection in this case.
HTH,
Bruce
More information about the thelist
mailing list