This email is to be read subject to the disclaimer below.
Hi Taco,
The answer as ever is yes and no. Yes in mozilla et al and no in IE.
The attribute selector is used as follows:
input[type=submit]{ your css attributes here}
The only way to do it reliable is the way you are
Or apply a class to it.
Cheers
Mark
--
Mark Stanton
Technical Director
Gruden Pty Ltd
Tel: 9956 6388
Mob: 0410 458 201
Fax: 9956 8433
http://www.gruden.com
*
The discussion list for http://webstandardsgroup.org/
..using a descendant selector...
#mydiv input
{
blah : blah;
}
#anotherdiv input
{
blah : blah;
}
That said, I've had some issues with getting markup to validate with
divs in forms.
Cheers
James
*
The discussion list for
2003 10:51 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [WSG] form input [Virus checkedAU]
Taco,
There's more than one way to reference a cat.
I think what Mark means is that if there was a div around the submit
button you could use that as a more specific selector. IMHO, probably just
easier to use
Not really, there is no class on the submit, it's a class on the
surrounding block.. a label in this example. Better to use a class as
their may be more than one submit/reset on the page.
label class=submitbuttons for=... ...input type=submit...
//label
.submitbuttons
{
background-color :
rereading that it may not be clear, if you want to style the button in
the label you could do something like this...
label.submitbuttons input
{
rule : value;
}
wonder if just
.submitbuttons input
would work?
James Ellis wrote:
Not really, there is no class on the submit, it's a class on