Title: How to add CSS code to generated button
Last modified: May 18, 2017

---

# How to add CSS code to generated button

 *  Resolved [erich11](https://wordpress.org/support/users/erich11/)
 * (@erich11)
 * [9 years ago](https://wordpress.org/support/topic/how-to-add-css-code-to-generated-button/)
 * 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](https://wordpress.org/support/users/basszje/)
 * (@basszje)
 * [9 years ago](https://wordpress.org/support/topic/how-to-add-css-code-to-generated-button/#post-9144567)
 * 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](https://wordpress.org/support/users/erich11/)
 * (@erich11)
 * [9 years ago](https://wordpress.org/support/topic/how-to-add-css-code-to-generated-button/#post-9147747)
 * 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](https://wordpress.org/support/users/basszje/)
 * (@basszje)
 * [9 years ago](https://wordpress.org/support/topic/how-to-add-css-code-to-generated-button/#post-9147922)
 * 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.

 * ![](https://ps.w.org/maxbuttons/assets/icon-128x128.png?rev=1378636)
 * [MaxButtons - Create buttons](https://wordpress.org/plugins/maxbuttons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/maxbuttons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/maxbuttons/)
 * [Active Topics](https://wordpress.org/support/plugin/maxbuttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/maxbuttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/maxbuttons/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Bas Schuiling](https://wordpress.org/support/users/basszje/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/how-to-add-css-code-to-generated-button/#post-9147922)
 * Status: resolved