Demo of different background classes on single Div using Bootstrap 4
bg-Primary! This is bg-primary class, you can change by using buttons below.
|
text-white
text-dark
To add left padding by declaring style
.hdd{padding-left: 0.3cm;}
You can add this by
class='bg-warning text-dark hdd'