Skip to content

Commit 38dc43b

Browse files
Merge pull request TheOdinProject#166 from AngryGolfer/main
Easy Fix - css-exercises/foundation/06 cascade fix/solution/style.css -Typo and line wrap
2 parents c7cba9f + 83ecb57 commit 38dc43b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

foundations/06-cascade-fix/solution/solution.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ div.text {
3232
Another solution would be keeping it in its original place and just chaining selectors, giving this rule a higher specificity:
3333
3434
p.small-para {
35-
font-size: 12px;
35+
font-size: 14px;
3636
}
3737
*/
3838

@@ -74,7 +74,8 @@ div.text {
7474
font-size: 14px;
7575
}
7676
77-
Then we added another selector to create a descendant combinator. If we only created a descendant combinator, the specificity would be tied with the div.text selector and it would come down to rule order, and if we only moved it the div.text selector would still have a higher specificity.
77+
Then we added another selector to create a descendant combinator. If we only created a descendant combinator, the specificity would be tied with the
78+
div.text selector and it would come down to rule order, and if we only moved it the div.text selector would still have a higher specificity.
7879
7980
Another solution would be to keep the rule where it was and just replace the div selector with the .text selector:
8081

0 commit comments

Comments
 (0)