I'am very new to slds.I have used Lightning input type tag for displaying the checkbox.Now checkbox is Appearing in left side.
Present Image:
<lightning:input type="checkbox" label="Selected :" value="{!v.displayComparison.Selected__c}" />
Requirement:
But I need to display checkbox in right side of the label:
Tried code:
I have tried this link: Is this possible to position label for inputCheckbox on the right hand side?
<lightning:input type="checkbox" class="myCheckbox" label="Checkbox label" />
css:
.THIS .myCheckbox{
display: inline-block;
float: left;
}
Best Answer
I am also new to SLDS but I have tried below code with some extra div tag to achieve the same.
below is how this will look like:
Please correct me if this is not what you were trying to achieve.