[thelist] CSS, Forms, IE/Netscape
aardvark
roselli at earthlink.net
Fri Dec 8 11:11:25 CST 2000
> From: "Gina K. Anderson" <gina at sitediva.com>
[...]
> Then just apply <INPUT CLASS="radio"..., right?
right, but isaac's article goes into more detail
(http://www.evolt.org/index.cfm?menu=8&cid=454, in case you
dumped the other posts)...
[...]
> For example, from the above sentence, it seems like you are saying to put two
> sizes in the input tag, "one correct and one short"..? Then what would the
> attribute be for the class?
sorry, i can see it was convoluted-sounding...
<input type="text" ... size="30" class="textBox">
so, that size gets rendered as just right in IE, but it comes up
shorter than you want in NN... this prevents it from pushing your
page out... unless you want it to happen the other way... in short,
code it as if you had no CSS control at all and make it as good as
you can for all browsers -- choosing the 'size' attribute least likely
to look ugly...
after this, add your 'class' attribute... now, for the CSS-friendly
browser, it sees the class, ignores the 'size' attribute, and then
applies the style (i think it's size, but i can't find a sample
anywhere) 'textBox'... you could also do it inline, but that's up to
you...
More information about the thelist
mailing list