I agree - you could also create a DOM script that would look for a tag
of "input" with an attribute type="submit" and then add a class to it
i.e. class="submit"

Cheers

Jeff Lowder
www.accessibility1st.com.au 


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of James Ellis
Sent: Monday, 22 March 2004 10:25 PM
To: [EMAIL PROTECTED]
Subject: Re: [WSG] CSS and form button question

Adam...

There was a thread on this a while back I think - you are looking for 
input submit {} input checkbox {} ? That kind of stuff....

 From memory it was decided no you can't but one thing you can do is 
this... (been experimenting with it)

<label class="checkbox" for=""..." >
   <input type="checkbox" ... >
</label>
<label class="radio" for="...">
   <input type="checkbox" ... >
</label>
<label class="submit" for="..">
   <input type="submit" ... >
</label>
<label class="reset" for="..">
   <input type="reset" ... >
</label>
<label class="file" for="...">
   <input type="file" ... >
</label>

and so forth... it moves the class to the label so you can do
.submit input
{
}

on the plus side it forces the use of labels which are always good I'm 
finding.

Cheers
James




Adam Carmichael wrote:

> Hi,
>
> I'm wondering if it is possible to format the form buttons on a page 
> using CSS without adding classes or ids to the existing markup whilst 
> not affecting the other <input> elements.
>
> I guess what I'm asking is, is it possible to style an <input> element

> using only the type attribute?
>
>
> Thanks in advance
>
> Adam
>
*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
***************************************************** 



*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
***************************************************** 

Reply via email to