Issue
In bootstrap4 we've used pl-5 for padding left, in bootstrap5 it is not working.
<div class="col-md-6 col-9 p-3 pl-5"> in bootstrap5 this code is not working
Solution
According to the documentation the class names are ps-
or pe-
... meaning start / end rather than left or right.
The reason is, that if you switch from RTL to LTR site your padding would still be applied from the correct side.
<div class="ps-2">I have a padding left on LTR and a padding right on RTL languages</div>
Answered By - cloned
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.