We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Icon Buttons

Thread ID:





140922 Nov 14,2018 11:41 AM UTC Nov 15,2018 09:37 AM UTC JavaScript - EJ 2 1
Tags: Button
Miguel Varela Rodriguez
Asked On November 14, 2018 11:41 AM UTC

Hi Syncfusion team.
I have some icon buttons, and im try to add some margin between text and the icon.
here is my code:

btnCheckAndFirm = document.getElementById('btnCheckAndFirm');
btnCheckAndFirm.innerHTML = "Firmar";
btnCheckAndFirm = new ej.buttons.Button();
btnCheckAndFirm.cssClass = "btnAction";
btnCheckAndFirm.iconCss = "e-icons iconSave";
padding-right: 30px;
thank you in advance
and greets from spain

Silambarasan I [Syncfusion]
Replied On November 15, 2018 09:37 AM UTC

Hi Miguel, 

Thank you for contacting Syncfusion support. 

We have checked your reported requirement and it can be achievable by overriding Button CSS styles as like in the below code example. 


      .e-btn .e-btn-icon.iconSave { 
        margin-right: 20px; 

Could you please check the above sample and get back to us if we misunderstood your requirement or need further assistance? 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon