Question

This is the css for setting the color for h1 text that is linked:

.nav-left h1 a,
a:visited {
  color: #055830;
}
<div class="nav-left">
  <h1><a href="/index.php/housing/">Housing</a></h1>
</div>

It does not look like it is working appropriately, any help is appreciated.

Was it helpful?

Solution

What about:

.nav-left h1 a:visited{
    color:#055830;
}

OTHER TIPS

if you want the colour to be the same for unvisited links you'll need to add a specific selector for that as well

.nav-left h1 a:link, .nav-left h1 a:visited {
    color:#055830;
}

If you want them the same, you must be specific:

.nav-left h1 a, a:visited

is not the same as:

.nav-left h1 a, .nav-left h1 a:visited

.nav-left h1 a {
    color: #055830;
}

You don't need to add a:visited if it is the same color.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top