Skip to content

Commit 2f97fac

Browse files
committed
Added Section 3: 29-30 - Styling Hyperlinks
1 parent ecfea39 commit 2f97fac

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

ongoing/03-CSS-Fundamentals/style.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,40 @@ aside {
8484
border-top: 5px solid #1098ad;
8585
border-bottom: 5px solid #1098ad;
8686
}
87+
88+
li:first-child {
89+
font-weight: bold;
90+
}
91+
92+
li:last-child {
93+
font-style: italic;
94+
}
95+
96+
li:nth-child(odd) {
97+
/* color: red; */
98+
}
99+
100+
/* Keep the order of these 4 anchor styles: LVHA */
101+
/* Styling links */
102+
a:link {
103+
color: #1098ad;
104+
text-decoration: none;
105+
}
106+
107+
a:visited {
108+
/* color: #777; */
109+
color: #1098ad;
110+
}
111+
112+
/* For mouse hovering the anchor */
113+
a:hover {
114+
color: orangered;
115+
font-weight: bold;
116+
text-decoration: underline orangered;
117+
}
118+
119+
/* For clicking the anchor */
120+
a:active {
121+
background-color: black;
122+
font-style: italic;
123+
}

0 commit comments

Comments
 (0)