File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
starter/03-CSS-Fundamentals Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -154,8 +154,10 @@ <h4>Related posts</h4>
154
154
</ aside >
155
155
156
156
< footer >
157
- <!-- using ids is not a good practice -->
158
- < p id ="copyright "> Copyright © 2027 by The Code Magazine.</ p >
157
+ <!-- using ids and inline styles is not a good practice -->
158
+ < p id ="copyright " class ="copyright text " style ="color: #444 ">
159
+ Copyright © 2027 by The Code Magazine.
160
+ </ p >
159
161
</ footer >
160
162
</ body >
161
163
</ html >
Original file line number Diff line number Diff line change @@ -146,3 +146,21 @@ a:active {
146
146
background-color : black;
147
147
font-style : italic;
148
148
}
149
+
150
+ /* Resolving conflicts */
151
+ # copyright {
152
+ color : yellow;
153
+ }
154
+
155
+ .copyright {
156
+ color : red;
157
+ }
158
+
159
+ .text {
160
+ color : green;
161
+ }
162
+
163
+ footer p {
164
+ /* color: blue !important; << NOT A GOOD PRACTICE */
165
+ color : blue;
166
+ }
You can’t perform that action at this time.
0 commit comments