Reputation: 7072
I have this HTML Element:
<button type="button" class="btn btn-xs btn-info">Feedback</div>
Class contains three elements:
btn
- style for default buttonbtn-xs
- changed size for button (not default one)btn-info
- changed color for button (not default one)This is 3th party library (bootstrap) that designs my button.
My question: Is it possible to make css selector where I summarize css selectors to one?
In my case it would look like:
<button type="button" class="feedback">Feedback</div>
And in my css:
.feedback {
style: .btn; /* how to do that? */
style: .btn-xs;
style: .btn-info;
}
Upvotes: 0
Views: 162