[UPHPU] Cool CSS thingy

Ray Hunter bigdog at venticon.com
Thu Feb 5 17:00:21 MST 2004


You are talking about attribute selectors:

http://www.w3.org/TR/REC-CSS2/selector.html#attribute-selectors

--
Ray

On Thu, 2004-02-05 at 16:18, David Smith wrote:
> I stumbled across this gem studying the code for phpBugTracker and thought
> some here might find it useful. This is a CSS snip-it that allows you to
> define styles for form inputs. Nothing new here, but with this you can add
> a criterion that defines which types of inputs you want to define:
> 
> input[type="text"] {
>    /* style for all <input type="text"> fields */
>    ...
> }
> 
> input[type="submit"] {
>    /* style for all <input type="submit"> buttons */
>    ...
> }
> 
> I wonder if this is a global rule, where you can specify attribute/value
> filters on every CSS definition, like this perhaps:
> 
> div[name="foo"] {
>    ...
> }
> 
> I don't know if that's valid or not.
> 
> Enjoy!
> 
> --Dave
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: list-unsubscribe at uphpu.org
> For additional commands, e-mail: list-help at uphpu.org
> 
> 
> 




More information about the UPHPU mailing list