I've had some issues with validating XHTML with divs in a form. The not
allowed here message.
Anyone else get that?
Cheers
Jame
Ben Boyle wrote:
label.submitbuttons input
...
wonder if just
.submitbuttons input
would work?
Yep. This allows the submitbuttons class to be specified
Title: form input
Is there some way that you can only target input elements with type SUBMIT?
Example;
style
form input
{
background-color: #FFCFCE;
border: 1px solid black;
font-weight: bold;
color: white;
width: 160px;
background-image:
] form input [Virus
checkedAU]
10/12/2003
10:56 AM
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