Skip to content

Commit d4a9227

Browse files
committed
CSS specificity
1 parent aeff902 commit d4a9227

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

starter/03-CSS-Fundamentals/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ <h4>Related posts</h4>
145145
</aside>
146146

147147
<footer>
148-
<p id="copyright">Copyright &copy; 2027 by The Code Magazine.</p>
148+
<p id="copyright" class="copyright text">
149+
Copyright &copy; 2027 by The Code Magazine.
150+
</p>
149151
</footer>
150152
</body>
151153
</html>

starter/03-CSS-Fundamentals/style.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,21 @@ a:hover {
103103
a:active {
104104
background-color: palevioletred;
105105
}
106+
107+
/* RESOLVING CONFLICTS */
108+
109+
/* .copyright {
110+
color: red;
111+
}
112+
113+
#copyright {
114+
color: blue;
115+
}
116+
117+
.text {
118+
color: yellow;
119+
}
120+
121+
footer p {
122+
color: green;
123+
} */

0 commit comments

Comments
 (0)