Skip to main content

All Questions

0 votes
2 answers
754 views

Why CSS .addClass is not applying proper style per specificity?

I understand the concept of css specificity. Here is my situation: I have a style for class called "success". This simply makes colors green...etc. Now I have 2 separate css files that defines ....
AlvinfromDiaspar's user avatar
1 vote
2 answers
281 views

Is there an JS library that orders CSS selector texts according to specificity? [duplicate]

Possible Duplicate: Sorting a set of CSS selectors on the basis of specificity I need a JS library that order CSS selector texts from most specific selector text to the less specific selector text,...
einstein's user avatar
  • 13.9k
1 vote
0 answers
79 views

find out specificity of a css selector in javascript [duplicate]

Possible Duplicate: Sorting a set of CSS selectors on the basis of specificity does anyone know of a way to find out the specificity of a css selector in javascript? is there some library or maybe ...
Christian's user avatar
  • 3,721
7 votes
6 answers
3k views

text-decoration:none doesn't remove text decoration

Consider the following code HTML: <span class='c1'>Home<sup id='id1'>[2]</sup></span> CSS: .c1 { text-decoration:underline; } #id1 { text-decoration:none !important; ...
sasidhar's user avatar
  • 7,762