CSS Form Attribute Selectors

Published Date Author: , Posted March 30th, 2011 at 4:03:56pm

Generally well-supported attribute selectors:

input[type=radio] input[type^=ra] input[type$=io] input[type*=d]

Element input with attribute type which contains a value that is equal to, begins with, ends with or contains a certain value.

Other safe selectors are:

Parent > child that has: p > span { font-weight: bold; }
Preeceded by ~ element which is: span ~ span { color: blue; }

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.