Skip to content

Commit

Permalink
Merge pull request TheOdinProject#211 from dm-murphy/fix-comments-06-…
Browse files Browse the repository at this point in the history
…cascade

Foundations/06-cascade-fix: Update solution comments
  • Loading branch information
dm-murphy authored Aug 5, 2022
2 parents f98ca16 + 0f83cb8 commit 913a077
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions foundations/06-cascade-fix/solution/solution.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ div.text {
.small-para {
font-size: 14px;
font-weight: 800;
}
Then we placed it after the .para selector, taking advantage of the rule order since both selectors have the same specificity.
Expand All @@ -39,6 +40,7 @@ div.text {
p.small-para {
font-size: 14px;
font-weight: 800;
}
*/

Expand Down Expand Up @@ -77,7 +79,8 @@ div.text {
For the following rule we first removed it from its original position in the file:
.child {
color: red;
color: rgb(0, 0, 0);
font-weight: 800;
font-size: 14px;
}
Expand All @@ -87,7 +90,8 @@ div.text {
Another solution would be to keep the rule where it was and just replace the div selector with the .text selector:
.text .child {
color: red;
color: rgb(0, 0, 0);
font-weight: 800;
font-size: 14px;
}
*/
Expand Down

0 comments on commit 913a077

Please sign in to comment.