Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

changing email link colour

Featured Replies

Using CSS, how do I change the colour of my email link on my web page. At the moment the default colour is blue but as my background colour is light blue there is a colour clash. Is there anyway I can change it?

Thanking you in advance,

Shedhead.

The easy way with css3 would just be to do something like this

 

a[href^="mailto"]{color:#000}

 

But that only works with browsers that support the new css3 selectors :(

 

Alternatively find your link

 

<a href="mailto:me@myself.com">Email me!</a>

 

and add a class to it

 

<a href="mailto:me@myself.com" class="email">Email me!</a>

 

and then in your css do something like this

 

a.email{color:#000}

If you have a very simple page with only one link you can just use:

a {color: red}

And if you want to remove the underline use:

a {text-decoration: none}

Adding the rollover is easy too:

a:hover {color: green}

  • Author

The easy way with css3 would just be to do something like this

 

a[href^="mailto"]{color:#000}

 

But that only works with browsers that support the new css3 selectors :(

 

Alternatively find your link

 

<a href="mailto:me@myself.com">Email me!</a>

 

and add a class to it

 

<a href="mailto:me@myself.com" class="email">Email me!</a>

 

and then in your css do something like this

 

a.email{color:#000}

 

 

Cheers bocaj, that worked a treat.

Shedman.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.