Home > Article > Web Front-end > How to remove horizontal lines under hyperlinks in css
Css method to remove horizontal lines under hyperlinks: First create an HTML sample file; then use the a tag to create a link, and add a class attribute to the a tag; finally, by adding the "text-decoration" attribute Set it to "none" to remove the horizontal line under the link.
The operating environment of this article: Windows7 system, HTML5&&CSS3 version, DELL G3 computer
First use the a tag to create a link and add the a tag A class attribute.
Then in the css tag, class the style of the hyperlink and set the text-decoration attribute to none to remove the underline of the link.
[Recommended learning: css video tutorial]
The above is the detailed content of How to remove horizontal lines under hyperlinks in css. For more information, please follow other related articles on the PHP Chinese website!