[Bootstrap Padding Not working] pl-lg-4 not working

Question: I am trying to use Padding in Boostrap to only pad left when on the large screen, but it seem to not work. Below is my code:

<div class="pl-lg-4">
//Content
</div>

What is going on?

 

Answer: If pl-lg-4 does not work, the code below:

<div class="p-lg-4 pt-lg-0">
//Content
</div>

The code above will pad the div on the large screen and leave out padding on top of the div. I hope this helps

Another article here.
Did you know you could edit this article?
Editing an Article is so awesome!!
Do you think editing articles is cool?

I would like to edit now.


Edit this Article
Bootstrap padding in bootstrap 5 UI Front-End Html5 CSS3 Technology published
Was this page helpful?
Yes Yes! this solution to the problem was helpful. No No! this solution to the problem was not helpful.. Leave ErnesTech Feedback.Feedback
If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.
Your Session is Ending
Login to Continue


© 2021 - ErnesTech - Privacy