----- Original Message -----
From: Norton Allen <allen@xxxxxxxxxxxxxxxxx>
To: Nathan Wiger <nate@xxxxxxx>
Cc: fbusers@xxxxxxxxxxxxxxx
Sent: Fri, 6 May 2005 15:49:01 +0100
Subject: Re: [FB] pondering stylesheet change
>
> Here's a question for anyone familiar with style for forms:
> should different <input> types get different classes, or is
> there another way to differentiate between, say, text and
> checkbox?
>
> -Norton Allen
IIRC, in CSS2 the more standards compliant browsers allow you to do:
input[type='text'] {}
input[type='checkbox'] {}
But I'm not sure about browser support. There are compatibility issues with the
above, as well as with using the "class" attribute on input elements. I tend to
wrap each input element inside a div and style the div, which works pretty well
across browsers.
Good CSS resource: http://www.blooberry.com/indexdot/css/
WH
|