Archived topic
Body Content Link CSS
5 replies · Started by Py on November 19, 2021
I want to underline the links that appear in the body of my content.
I used the following CSS Code
a {
font-weight: bold !important;
text-decoration: none;
padding-bottom: 3px;
border-bottom: dashed 1px;
}
a:hover
{
border-bottom: solid 2px;
}
But this underlines the links in the header and footer as well.
When I added #content in front of a and a:hover CSS Code, it ended up breaking the buttons in the body of the post.
Any help really appreciated.
Hi there,
Are you using the most recent version of GeneratePress theme?
If so try this option:
https://www.screencast.com/t/PpxdWQhB0
Thanks. I want the underline to be dotted underline and a little spaced below the text. Specifically using the css.
Try this:
.entry-content a {
font-weight: bold !important;
text-decoration: none;
padding-bottom: 3px;
border-bottom: dashed 1px;
}
.entry-content a:hover
{
border-bottom: solid 2px;
}
Thank you. That works.
No problem :)