Bootstrap text alignment example

A simple example of using the text alignment classes in Bootstrap.
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="Bootstrap example for Tizen"/>
    
    <title>Bootstrap example for Tizen</title>
    
 <link rel="stylesheet" href="css/bootstrap.min.css">
  <script src="js/jquery-2.1.4.min.js"></script>
  <script src="js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">

<h2>An example showing the usage of the text alignment classes in Bootstrap</h2>

  <p class="text-left">A left-aligned text</p>
  <p class="text-right">A right-aligned text</p>
  <p class="text-center">A center-aligned text</p>
  <p class="text-nowrap">A nowrap text. Yes it is a nowrap text. Really it is. You will see it soon.</p>
  <p class="text-justify">A ljustified text. This text will evenly distribute inside your window. Just look how pretty it looks justified :)</p>
  
</div>

<script>
</script>

</body>
</html>

Responses

0 Replies