How do I select a class like class="boolean optional" ?
I have tried this:
.boolean optional {CSS}
.boolean_optional {CSS}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As Zepplock says, that’s actually two classes in a single attribute:
booleanandoptional. The space is not part of a class name; it acts as the separator.These three selectors will all match it:
The last selector only picks up this element as it has both classes.
You never include a space when chaining class selectors, not even like this:
As that selects
.optionalelements that are contained within separate.booleanelements.