[Resolved] Adding a border-bottom to links

Home Forums Support [Resolved] Adding a border-bottom to links

Home Forums Support Adding a border-bottom to links

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1453834
    Liran

    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!

    #1454087
    Leo
    Staff
    Customer Support

    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 πŸ™‚

    #1454185
    Liran

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

    Just a simple a class="button"

    #1454207
    Leo
    Staff
    Customer Support

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

    #1454226
    Liran

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

    Thanks Leo!

    #1454231
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

    #1454515
    Liran

    Quick question,

    Is it possible to set buttons to have different colors?

    #1454519
    Leo
    Staff
    Customer Support

    You can try using HTML inline style.

    Or the buttons block from GenerateBlocks make things like this easy:
    https://docs.generateblocks.com/article/buttons-overview/

    #1454523
    Liran

    Or the buttons block from GenerateBlocks

    If only it had worked in the classic editor.

    #1454526
    Leo
    Staff
    Customer Support

    It’s a block plugin so Gutenberg is definitely required πŸ™‚

    #1454557
    Liran

    Got it! Appreciate the help.

    #1454654
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.