Site logo

Archived topic

Body Content Link CSS

5 replies · Started by Py on November 19, 2021

Viewing posts 1–6 of 6

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.

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 :)

This archived topic is closed to new replies.