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.

Links and images

Featured Replies

Two problems I can see at the moment.

 

Firefox is putting borders around my linked images. Fair enough, I just put

 

a{

border: none;

 

}

 

in my css. But the borders are still there :mellow:

 

Another problem with the same kind of css, some of my link colours aren't displaying correctly..

 

a:link { 
color: #564b47;
text-decoration: none;
}

a:hover { 
color: #ccccaa; 
text-decoration: none;
}

a:visited { 
color: #564b47;
}

a:active { 
color: #564b47;
}

 

Why is this? I don't remember having this problem before, but I may be mistaken.

 

Might be an obvious answer, apologies if it is, thanks.

For your first problem, use 'a img' instead of just 'a'.

Your second problem might be to do with the order of your declarations.

They should always be declared in the following order:

a:link {
color: #564b47;
text-decoration: none;
}
a:visited {
color: #564b47;
}
a:hover {
color: #ccccaa;
text-decoration: none;
}

a:active {
color: #564b47;
}

think LoVe HAte

Just to add on with a follow-up question... when you group the pseudo-classes (a:link, a:visitied...) does active still need to come below hover?

 

Or could you do for example:

 

a:link, a:visited, a:active {
color: #564b47;
text-decoration: none;
}

a:hover {
color: #ccccaa;
text-decoration: none;
}

 

 

Cheers,

 

/Doug

The key to remembering the linking order in CSS is the “LoVe HAte” relationship.

 

a:link

a:visited

a:hover

a:active

 

Hope this helps. :)

  • Author

Ahh i forgot the whole LoVe HAte thing -_-

 

Thanks for clearing that up

Two problems I can see at the moment.

 

Firefox is putting borders around my linked images. Fair enough, I just put

 

a{

border: none;

 

}

 

in my css. But the borders are still there :mellow:

 

Just put the following code:

 

img {
outline:none;
}

 

That should fix it in firefox.

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.