About this question
How can I align this button to the right side? I tried with "some classes" but it is not changing the place (working with lwc)
Html:
data-id = "Broker"
name="Broker"
label="Broker"
value={Broker}
options={groupOptions}
onchange={takeFilter}
variant="label-hidden">
Your answer
Log in to share your answer and help other learners.
Log in to answer1 Answer
Best Answer · By JanBask Salesforce Expert
Answered on Feb 10, 2023
To have a right align button, you first need to occupy the whole space. You have mentioned size="3" and size="4" which means you only occupied 7 out of 12 grids. You need to change it to
And add class in both, the first one being class="slds-text-align_left" and the second one to shift to right as class="slds-text-align_right".
Then it looks like this.
Was this helpful?More Salesforce discussions
How to resolve error non static method cannot be referenced from a static context? How to fix insufficient access rights on cross-reference id? How do I resolve the error: connect etimedout How to query Soql not like? Why sfdx is not recognized as an internal or external command? How to use settimeout function in the lightning component?