HTML5 <style> visited color problem

Joined
Jun 28, 2015
Messages
37
Reaction score
2
I am very sure that the code I have written is correct and it sometimes works, but it sometimes does not work. The visited color (green or #00FF00) comes up after visiting a site but not always. What could cause this?

My hosting service (GoDaddy.com) does not know.

<style>

body {
background-image: url(https://www.futurebeacon.com/fb8.png);>
background-repeat: no-repeat;
}

a:link {
color: #0000FF;
background-color: transparent;
text-decoration: none;
}

a:visited {
color: green;
background-color: transparent;
text-decoration: none;
}

a:hover {
color: #000000;
background-color: transparent;
text-decoration: underline;
}

a:active {
color: #FFFF00;
background-color: transparent;
text-decoration: underline;
}

</style>


Thank you for your help.

James Adrian

(e-mail address removed)
 
Joined
Jan 25, 2017
Messages
1,266
Reaction score
100
I have tried this and cannot replicate the problem, I also tried with an external style sheet and the results were the same.

I noticed an unwanted '>' at the end of the background-image line but this did not seem to make a difference either.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

HTML5 problem 7

Top