본문 바로가기

CSS

[CSS] To change text color in list

To change the color of the inline text, targets the CSS selector “a”

 

 

To remove underline from a link with CSS, ADD text-decoration: none to your code.

For example, to remove underline for all links on all pages, use this CSS code:

a {
  text-decoration: none;
  color: black;
}

This code targets the CSS selector “a”, which selects all HTML tags <a> - the ones used for links, and adds the CSS text-decoration: none and color: black to remove the underline and set a fixed color to the links.

 

반응형