Jump to content

Link colors

Recommended Posts

I've recently noticed that the phone number in the footer of our website was being turned into a link automatically by mobile browsers, which made the number so dark it couldn't be seen. I added some style coding to make the hyperlink text default to white, however in the section of the website that have a white background, now have invisible links unless you rollover them. Any pointers on how to resolve this?

Code:

<style>
a:link {
  color: grey;
  background-color: transparent;
  text-decoration: none;
}
a:visited {
  color: pink;
  background-color: transparent;
  text-decoration: none;
}
a:hover {
  color: red;
  background-color: transparent;
  text-decoration: underline;
}
a:active {
  color: yellow;
  background-color: transparent;
  text-decoration: underline;
}
</style>

Link to comment
  • Replies 3
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.