how to text center in bootstrap code example

Example 1: centre text bootstrap

<div class = "text-center">

	<p> hello world</p>


</div>

Example 2: font weight bootstrap class

<p class="font-weight-bold">Bold text.</p>
<p class="font-weight-normal">Normal weight text.</p>
<p class="font-weight-light">Light weight text.</p>
<p class="font-italic">Italic text.</p>

Example 3: bootstrap text no wrap

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

Example 4: bootstrap text center in div

<!-- recommended method -->
<div class="col-xs-1 text-center">

Tags:

Misc Example