I cannot use Pseudo-classes in css

Asked

Viewed 75 times

0

Hello. I’m trying to put a style in the links on my site, but when I open the site does not apply the changes I put through css. I used the following code

erro pseudo-class

I’ve researched some places, but none informs my prblema.

  • Try to offer as much detail as you can about your problem and preferably choose to always share the code instead of images, @Matheus. So it will be easier for users to offer any kind of help.

  • Because there’s one ; (semicolon) on line 7

2 answers

1

Welcome to the Stackoverflow!

I used exactly the same css that you made available and is working normally. The only difference is a ; that was missing on the line 7 in color: #315e8a

body {
  font-family: "K2D", sans-serif;
}

a:link, a:active, a:visited {
  color: #315e8a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
<a href="#teste">Teste</a>

0

I have not tested the code, but there is a semicolon (;) missing on line 7. Try this and it will probably work.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.