function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
GÜNES AdminGÜNES Admin 

How to leave a space between two Aura buttons (lightning:button)?

Dear all,
Sorry for such a simple question but I need guidance on:
How to leave space between two Lightning Buttons that I place in a component?

lightning buttons

At the moment, the buttons are aligned to the right side of the page which is fine, however, there is no space between the buttons.

Currently the code is:
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
<div align="right">
    <lightning:buttonGroup>
        <lightning:helptext content="Use these buttons as Workflow Actions"/>
        <p><lightning:button variant="success" label="Progress Workflow" onclick="{!c.handleClick}"/></p>
        <p><lightning:button variant="destructive" label="Cancel Change" onclick="{!c.handleClick}"/></p>
    </lightning:buttonGroup>
</div>
</aura:component>
AnkaiahAnkaiah (Salesforce Developers) 
Hi Try with below code.
 
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
<div align="right">

        <lightning:helptext content="Use these buttons as Workflow Actions"/>
        <p><lightning:button variant="success" label="Progress Workflow" onclick="{!c.handleClick}"/></p>
        <p><lightning:button variant="destructive" label="Cancel Change" onclick="{!c.handleClick}"/></p>

</div>
</aura:component>

Let me know if any issues.

Thanks!!