Site logo

Archived topic

Adding a border-bottom to links

11 replies · Started by Liran on September 22, 2020

Viewing posts 1–12 of 12

Hey,

I want to add a border-bottom to all the links inside my posts, but without affecting the buttons (I currently use this CSS rule: #page p a).

Any suggestions?

Thanks!

Hi there,

Does the buttons have a special class that we can use to exclude?

It would be easier for me to provide the code if you can link me to the page in question :)

Does the buttons have a special class that we can use to exclude?

Just a simple a class="button"

That case you can try this selector:
#page p a:not(.button)

Not only did it work, but I also learned something new.

Thanks Leo!

No problem :)

Quick question,

Is it possible to set buttons to have different colors?

Or the buttons block from GenerateBlocks

If only it had worked in the classic editor.

It's a block plugin so Gutenberg is definitely required :)

Got it! Appreciate the help.

No problem :)

This archived topic is closed to new replies.