text center sm bootstrap code example

Example 1: centre text bootstrap

<div class = "text-center">

	<p> hello world</p>


</div>

Example 2: text align center bootstrap

<p class="text-left">Left aligned text on all viewport sizes.</p>
<p class="text-center">Center aligned text on all viewport sizes.</p>
<p class="text-right">Right aligned text on all viewport sizes.</p>

<p class="text-sm-left">Left aligned text on viewports sized SM (small) or wider.</p>
<p class="text-md-left">Left aligned text on viewports sized MD (medium) or wider.</p>
<p class="text-lg-left">Left aligned text on viewports sized LG (large) or wider.</p>
<p class="text-xl-left">Left aligned text on viewports sized XL (extra-large) or wider.</p>

Example 3: bootstrap text no wrap

<div class="text-nowrap" style="width: 8rem;">
  This text should overflow the parent.
</div>

Example 4: lowercase bootstrap class

<p class="text-lowercase">Lowercased text.</p>
<p class="text-uppercase">Uppercased text.</p>
<p class="text-capitalize">CapiTaliZed text.</p>

Tags:

Misc Example