On Wed, 28 Feb 2007, Barney Carroll wrote:
> Does anyone know if checkboxes can be sized in IE?
Yes.
> I thought this was not part of CSS as it stood anyway,
The nature of a checkbox is unspecified in CSS. It has intrinsic
dimensions, which can be affected by width and height properties, but it
is debatable whether this means the square alone (if it is a square -
there is no law saying what a checkbox _should_ look like) or a (normally
borderless) box containing the square.
So there's really no "should", still less "shall", but there's a strong
"could": sizing may well work.
> but when I attach
> the following CSS:
>
> input[type="checkbox"]
> {height: 1em; width: 1em}
>
> ...FireFox renders beautiful scaling boxes. Is this true across the board?
If you use just
input {height: 1em; width: 1em}
or
input.cb {height: 1em; width: 1em}
then it works on IE as well. However you might not _see_ it working, since
the default size is apparently close to 1em. Well, perhaps rather 1.25em,
but the difference is difficult to see. Try with 2em and you'll see.
The attribute selector [type="checkbox"] is not supported at all by IE 6,
and IE 7 recognizes it in "standards mode" only.
--
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/