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
*****************************************************




Reply via email to