In CSS, you can use the "border-bottom" attribute and "text-decoration" attribute to make the line under the a tag thicker. The syntax is "a{text-decoration:none;border-bottom:line Thickness value solid color value;}".
The operating environment of this tutorial: Windows 10 system, CSS3&&HTML5 version, Dell G3 computer.
How to thicken the line under the a tag in css
In css, you can use the border-bottom attribute and text-decoration attribute to Make the line under the a tag thicker. The
text-decoration attribute is used to specify the decoration added to the text. The border-bottom attribute is used to set the bottom border style of the element. Therefore, we can first change the original a tag. Remove the underline and use the lower border of the a tag element as the line under the a tag. In this way, you only need to set the thickness value of the lower border of the a tag.
The example is as follows:
Document 这是一个a标签
Output result:
(Learning video sharing: css video tutorial)
The above is the detailed content of How to thicken the line under the a tag in css. For more information, please follow other related articles on the PHP Chinese website!