maxp maxp - 2 years ago 113
CSS Question

How to increase the gap between text and underlining in CSS

Using CSS, when text has

applied, is it possible to increase the distance between the text and the underline?

Answer Source

No, but you could go with something like border-bottom: 1px solid #000 and padding-bottom: 3px.

edit: if you want the same color of the "underline" (which in my example is a border), you just leave out the color declaration, i.e. border-bottom-width: 1px and border-bottom-style: solid.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download