Timeline for What is the order of precedence for CSS?
Current License: CC BY-SA 3.0
19 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 2 at 5:02 | answer | added | A.Sai | timeline score: 0 | |
May 13, 2022 at 7:23 | answer | added | Safin Ghoghabori | timeline score: 1 | |
Oct 15, 2019 at 18:25 | answer | added | P. Avery | timeline score: 7 | |
Mar 7, 2019 at 15:49 | answer | added | AMS777 | timeline score: 37 | |
Dec 11, 2018 at 11:53 | answer | added | Qin | timeline score: 79 | |
May 9, 2017 at 22:41 | comment | added | RBT | Something similar here. | |
May 6, 2017 at 4:54 | comment | added | Andy | Now I'm wondering why if both rules have the same specificity the one declared later on the element's class attribute doesn't take precedence, regardless of the order of the CSS rules. | |
Mar 21, 2017 at 17:12 | history | edited | falsarella | CC BY-SA 3.0 |
fixed indentation
|
Jun 16, 2016 at 6:39 | answer | added | Lucky Chaturvedi | timeline score: 4 | |
Feb 13, 2016 at 19:22 | comment | added | millimoose |
And if you do NOT want the .smallbox-paysummary to have a smaller font, why are you making it smaller in the first place?
|
|
Feb 13, 2016 at 19:22 | comment | added | millimoose |
SMACSS seems to recommend to only include the changed properties in a "subclass" (i.e. .smallbox-paysummary ), and optionally make the CSS declaration more clearly specific (without relying on the order of appearance in the CSS file) by using .smallbox.smallbox-paysummary { font-size: 10px; }
|
|
Feb 13, 2016 at 19:18 | comment | added | millimoose |
You really shouldn't combine @extend - if it does what I think it does - and using both selectors on the same element.
|
|
Feb 13, 2016 at 19:00 | answer | added | freedeveloper | timeline score: 5 | |
Aug 3, 2014 at 21:33 | vote | accept | Stephen | ||
Aug 3, 2014 at 15:02 | answer | added | Renato | timeline score: 8 | |
Aug 3, 2014 at 14:49 | answer | added | Lorenz Meyer | timeline score: 324 | |
Aug 3, 2014 at 14:47 | answer | added | LifeQuery | timeline score: 13 | |
Aug 3, 2014 at 14:41 | comment | added | Jared Farrish |
Are you using a CSS pre-processor? I see you have that @extend .smallbox; , which looks like non-standard cSS.
|
|
Aug 3, 2014 at 14:37 | history | asked | Stephen | CC BY-SA 3.0 |