Saturday, 17 August 2013

How can I use a CSS selector to match two classes being present?

How can I use a CSS selector to match two classes being present?

I have the following HTML:
<div class="disabled input-type-text" style="border: 1px solid #adcede;
padding: 7px; margin: 7px 0 2px 0; line-height: 16px></div>
I am trying to match the class of disabled and input-type-text. I tried
the following but it does not work:
.form .input-type-text.disabled
Can someone give me some advice on how I can match with CSS selectors?

No comments:

Post a Comment