Adjust underline spacing

Posted in: Newspaper
Post count: 88

Ctrl + U
Underline feature in WordPress
I would like to adjust the spacing.

I know how to specify a separate class and insert it, but it is inconvenient.

Post count: 35449

Hi,
This can be resolved only with a general css, you can try something like this one:
.tdb_single_content p span{
text-underline-offset: 0.1em;
}

The css can be set in single post template in a css element or in the theme panel > custom code> custom css.
I hope this will help you!

Post count: 88

Thank you. Is it possible to change the color or thickness?
I want to change only the underline color.

  • This reply was modified 2 years by mongooz.
Post count: 35449

Hi,
You can try to add this code to the initial css:
text-decoration: underline;
text-decoration-color: red;

Post count: 88

.tdb_single_content p span{
text-underline-offset: 0.1em;
text-decoration: underline;
text-decoration-color: red;
}

I did this and it doesn’t work.

Post count: 35449

Hi,
Can you please provide a link where I can check and adjust the code?
Thank you!

Post count: 88

I tried it again and it applied! Thank you!

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.