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.

Link color

Featured Replies

I know this is super basic html but I just can't figure out what it is that's going wrong!

 

I want my links to be white, so:

a:link {	
color: #ffffff;}

 

But they show up as purple! Which I suppose is my browser's default? (I use chrome)

All the other ones, a:visited a:active etc are fine...

 

And also when I right click in Chrome and 'inspect element' I see 'color: webkit link' what is that? (see image)

 

Thanks for any help.

post-16366-126710487924_thumb.jpg

color:-webkit-link; is part of you browser's default stylesheet, these are the styles that are applied when no other styles apply to that element.

 

The debug window in chrome seems to suggest that your stylesheet isn't being loaded because there are no styles applying to the anchor.

 

How are you supplying the styles? Can you show the full html file?

 

 

Thanks,

Explosive Designs

Web Design by Explosive Designs

a:link {} is just the link state. You probably need to code all states:-

a:link, a:visited, a:hover, a:active, a:focus { color: #ffffff; }

 

 

and depending on your code structure you might want to put a class or id in front of each so that the codes only apply to that class or id and not everywhere:-

#nav a:link, #nav a:visited, #nav a:hover, #nav a:active, #nav a:focus { color: #ffffff; }

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.