You need to sign in to do that
Don't have an account?
chaithaly gowda
slds-align_absolute-center slds-text-body_regular is not centering when the texts are long
Hi
I have used slds-align_absolute-center slds-text-body_regular to align the texts to centre.
below is the snippet
<lightning:card >
<div class="slds-align_absolute-center slds-text-body_regular">
<ul>
<!-- Body set dynamically-->
</ul>
</div>
</lightning:card>
Alignment works properly when when texts are short , but when texts are long it is automatically aligning the texts to the left.
Can someone help with this.
Thanks
I have used slds-align_absolute-center slds-text-body_regular to align the texts to centre.
below is the snippet
<lightning:card >
<div class="slds-align_absolute-center slds-text-body_regular">
<ul>
<!-- Body set dynamically-->
</ul>
</div>
</lightning:card>
Alignment works properly when when texts are short , but when texts are long it is automatically aligning the texts to the left.
Can someone help with this.
Thanks
Can you mention the code so as to use and check in my dev org and to check it further?
Looking forward to your response.
Thanks.