Bootstrap conventions

Bootstrap conventions
0

#1

In Bootstrap, what is the reason for using “class:‘text-center’”? Adding “style=‘text-align:center’” seems to be more simple.


#2

Isn’t it that the bootstrap class is inline, whereas text-align can be in the CSS file and hence be more easily refactored if necessary?


#3

I guess it’s simpler (and more consistent) to just add a class than add a style attribute. Compare
<p class="lead text-center">
to
<p class="lead" style="text-align:center;">


#4

I’m satisfied with these answers thanks. Can I give points/cookies here as well as I can in the Chat?


#5

Ha ! :grin: well your answer serves as reward, don’t worry - but for other posts that you like you can just click the little heart, the poster is notified every time.