No decoration on links in CSS
Asked Answered
S

1

5

Example page, Accompanying CSS

Should be a fairly basic issue but for some reason I can't figure it out.

Basically I want the links in my navbar to have no underline or colour change and remain white.

Any idea where I'm going wrong?

Singlehandedly answered 14/8, 2010 at 11:9 Comment(1)
The source code is missing.Heartless
R
13

It's because you're selecting the main .links element, but not the actual a elements inside. This should do the trick:

.links a {
  text-decoration: none;
  color: white;
}
Rask answered 14/8, 2010 at 11:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.