logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: [FB] pondering stylesheet change: msg#00006

Subject: Re: [FB] pondering stylesheet change
Norton Allen wrote:
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?

With CSS3 selectors, you can do stuff like this:

input[type="text"] { /* text input styles */ }
input[type="checkbox"] { /* checkbox styles */ }
select[multiple="multiple"] { /* multi-select box styles */ }

And so forth. See also http://www.splintered.co.uk/experiments/38/ for a related use (styling links differently based on their 'type' attribute), and http://www.xml.com/pub/a/2003/06/18/css3-selectors.html for an overview of CSS selectors, including CSS3.

Unfortunately, while CSS3 selectors are supported on Firefox and Safari, they are NOT supported on Internet Explorer. So the upshot is, for now, having classes for the different input elements may be the best bet.

hth,
-Peter




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>