All Questions
Tagged with css-specificity class
5 questions
1
vote
2
answers
1k
views
HTML. Assign multiple classes with subclasses to a element
I'm struggling with HTML classes. I've got these classes in CSS:
.a{}
.a .b{}
.a .c{}
And I'm trying to assign two classes to elements like this:
<div class="a b"></div>
<div class="a ...
22
votes
1
answer
36k
views
Can an entire CSS ".class" have its specificity as '!important'? [closed]
I am working heavily in jQuery UI widgets and theming is becoming hard because of an oversight that I need to work around.
Consider this problem:
<div id="node" class="ui-widget"...
0
votes
2
answers
119
views
I don't understand why an ID is not more specific than a class
I've got:
<div class="cardDisplay">
<img class="cardImg" id="cardImg4" alt="Card" src="picture.jpg" width="148" height="236.8" title="">
</div>
Here's my CSS.
.cardDisplay
...
0
votes
5
answers
267
views
CSS and specificity - class vs ids
Consider the following html:
<div id="rightBar">
<div class="barElement">
<div class="barText"><a href="#">Not underlined</a><br /></div>
...
25
votes
4
answers
35k
views
CSS class priorities
I have a question about the priority of CSS classes after encountering a problem today. The situation is as follows:
I have an unordered list which has a class associated with it. The LI tags have ...