본문 바로가기

CSS

[CSS] To remove underline / dots from a link

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.

 

 

To remove the dots in an HTML list, set the CSS list-style: none for all lists. (ul tags)

ul {
  list-style: none;
}

 

반응형