Skip to content

Commit 460372f

Browse files
committed
Added styling for the hyper links, using :link, :visited, :hover and :active pseudo classes.
1 parent e9a034c commit 460372f

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

starter/03-CSS-Fundamentals/style.css

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,31 @@ this will not work because paragraph is not the first child of our article
118118
article p:first-child {
119119
color: red;
120120
}
121-
*/
122121
123-
/* but this is gonna work, because paragraph is the last child of our article */
122+
but this is gonna work, because paragraph is the last child of our article
124123
125124
article p:last-child {
126125
color: red;
127126
}
127+
*/
128+
129+
/* Styling links */
130+
a:link {
131+
color: #1098ad;
132+
text-decoration: none;
133+
}
134+
135+
a:visited {
136+
color: #1098ad;
137+
}
138+
139+
a:hover {
140+
color: orangered;
141+
font-weight: bold;
142+
text-decoration: underline orangered;
143+
}
144+
145+
a:active {
146+
background-color: black;
147+
font-style: italic;
148+
}

0 commit comments

Comments
 (0)