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 th
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.
.submitbuttons
{
background-color : red;
}
.resetbuttons
{
background-color : blue;
}
Cheers
James
Taco,
There's more than one way to reference a cat.
I think what Mark means is that if there was a around the submit
button you could use that as a more specific selector. IMHO, probably just
easier to use a class (as previously mentioned...)
Steve Dixon.
***
0 December 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 around the submit
button you could use that as a more specific selector. IMHO, prob
Yes, but that would the same as assigning a class to the submit button.
Anyway, thanks for the input - answer: it can't be done yet;-))
-Original Message-
From: James Ellis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 10 December 2003 10:36 AM
To: [EMAIL PROTECTED]
Subject: Re: [WSG]
..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 http://webstandards
Hi Mark,
The answer as ever is yes and no. Yes in mozilla et al and no in IE.
As always ofcourse.
The only way to do it reliable is the way you are proposing - unless you
can refer to it another way - i.e. does it sit
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/
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 prop