Skip to content

Commit ba809af

Browse files
committed
feat: css theory#1 conflicts between selectors
1 parent ef88c77 commit ba809af

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

starter/03-CSS-Fundamentals/index.html

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

149149
<footer>
150-
<p id="copyright">Copyright &copy; 2027 by The Code Magazine.</p>
150+
<p id="copyright" class="copyright text">
151+
Copyright &copy; 2027 by The Code Magazine.
152+
</p>
151153
</footer>
152154
</body>
153155
</html>

starter/03-CSS-Fundamentals/style.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,19 @@ a:active {
129129
background-color: black;
130130
font-style: italic;
131131
}
132+
133+
#copyright {
134+
color: red;
135+
}
136+
137+
.copyright {
138+
color: blue;
139+
}
140+
141+
.text {
142+
color: yellow;
143+
}
144+
145+
footer p {
146+
color: green;
147+
}

0 commit comments

Comments
 (0)