css
Remove underline from link using CSS
You can use the text-decoration property of CSS to remove the underline from the link.
.link {
text-decoration: none;
}
To remove underline from a link or <a> HTML tag you can use CSS property text-decoration: underline;
To remove the underline from all tags use the below syntax:
a {
text-decoration: none;
}
Remove underline from a specific element use below code by assigning a class to that element.
.cs_name {
text-decoration: none;
}
Was this helpful?
Similar Posts
- Remove chrome browser autofill background color CSS
- Remove (WebKit) Chrome browser autofill background color CSS
- Create rounded shape style button using CSS
- Create skew background using CSS
- Change Last element style using CSS
- Add image to background using CSS
- Create a simple Vertical menu using CSS Example 1