开发者

No decoration on links in CSS

开发者 https://www.devze.com 2023-01-11 07:46 出处:网络
Example page, Accompanying CSS Should be a fairly basic issue but for some reason I can\'t 开发者_JAVA技巧figure it out.

Example page, Accompanying CSS

Should be a fairly basic issue but for some reason I can't 开发者_JAVA技巧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?


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;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号