Hi, if i click on one link, all my links color at the same time as visited and i can’t figure it out why. The next time i visit the page, they still are colored.
test.knappewebsites.be for a live preview, but you have to copy paste it in to your browser, not in your search field, it is a temporary sub domain.
All help is highly appreciated!
here is the code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<style media="all">
```css
/* clear */
article, aside, figure, figcaption, footer, header, main, nav, section { display:block; }
* {margin:0; padding:0;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;}
html {font-size:1rem;}
h1 {
font-family:wildscratch;
font-weight:normal;
margin:0;
padding:0;
font-size:6rem;
}
img {max-width:100%;
border: solid 5px white;
-moz-box-shadow: 0 0 1px 1px #999;
-webkit-box-shadow: 0 0 1px 1px#999;
box-shadow: 0 0 1px 1px #999;}
#center {width:80%;
margin:0 auto;}
a:link {text-decoration:none;
color:black;}
a:visited {color:red;}
a:hover {color:white}
a:active {text-decoration:none;
color: #999;
position: relative;
top: 1.5px;}
#maatwerk {position:absolute;
left:15%;
margin-top:-35%;
padding:1px 4px;
background:white;
color:black;
text-decoration:none;}
#maatwerk:hover {position:absolute;
left:15%;
margin-top:-35%;
padding:1px 4px;
background:black;
color:white;
border:solid 1px white;
font-size:1.25rem;}
#trappen {position:absolute;
left:25%;
margin-top:-25%;
padding:1px 4px;
background:white;
color:black;
text-decoration:none;}
#trappen:hover {position:absolute;
left:25%;
margin-top:-25%;
padding:1px 4px;
background:black;
color:white;
border:solid 1px white;
font-size:1.25rem;}
#meubelen {position:absolute;
left:80%;
margin-top:-37%;
padding:1px 4px;
background:white;
color:black;
text-decoration:none;}
#meubelen:hover {position:absolute;
left:80%;
margin-top:-37%;
padding:1px 4px;
background:black;
color:white;
border:solid 1px white;
font-size:1.25rem;}
#inox {position:absolute;
left:75%;
margin-top:-20%;
padding:1px 4px;
background:white;
color:black;
text-decoration:none;}
#inox:hover {position:absolute;
left:75%;
margin-top:-20%;
padding:1px 4px;
background:black;
color:white;
border:solid 1px white;
font-size:1.25rem;}
#aluminium {position:absolute;
left:55%;
margin-top:-5%;
padding:1px 4px;
background:white;
color:black;
text-decoration:none;}
#aluminium:hover {position:absolute;
left:55%;
margin-top:-5%;
padding:1px 4px;
background:black;
color:white;
border:solid 1px white;
font-size:1.25rem;}
<div id="center">
<h1>Visited links color all at once</h1>
<img src="abstract-lines2.jpg" alt="" title="" />
<p id="maatwerk"><a href="#">Maatwerk</a></p>
<p id="trappen"><a href="#">Trappen</a></p>
<p id="meubelen"><a href="#">Meubelen</a></p>
<p id="inox"><a href="#">Inox</a></p>
<p id="aluminium"><a href="#">Aluminium</a></p>
</div>
```