+ 3
How to have multiple styles for <a>? (solved)
how can I have links have multiple styles? my code included. https://code.sololearn.com/W8zVacN05t5p/?ref=app
2 Respostas
+ 6
Hello, Dylan J. Walker !
In order to install several styles, use classes, you can do it like this:
.style1 {
color:red;
}
.style2 {
text-decoration:none;
}
<a href='http://link.com' class= 'style1 style2'>link</a>
+ 1
Alexander Sokolov worked it out!
a {
color: #000000;
font-weight: 300;
text-decoration: none;
}
a.normal{
font-style: normal;
}