• Resolved erich11

    (@erich11)


    Hi,
    sorry, I’m not a CSS expert but would like to add “line-height: 1.6em;” to one of my created buttons. Since the CSS code is inline, I don’t know how to best override it.

    Many thanks for your help.
    Erich

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bas Schuiling

    (@basszje)

    You can target buttons by using the class ‘.maxbuttons’ for all buttons on page, or ‘.maxbutton-1’ ( where 1 is the button id ).

    And so you can write the custom CSS somewhere :

    .maxbuttons { line-height: 1.6em; }

    Thread Starter erich11

    (@erich11)

    Thanks for the tip. Unfortunately, this did not work in my environment, but the following code worked:
    span.mb-text { line-height: 1.6em !important; }
    Thanks anyway.

    Plugin Author Bas Schuiling

    (@basszje)

    Ok. You can also control the spacing of the text relative to the button using the padding and / or button height from the editor.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to add CSS code to generated button’ is closed to new replies.