title: Text not being displayed correctly
body: <p>I have some issues with my text performance because it is not getting displayed correctly in the page. Instead of the text being justified (<code>text-align:justify</code>) it is like all the text is being stretched in a single line. In my local development environment it is being displayed correctly. I had spent some time trying to figure it out why this is happening but still no clue.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function(){
  //Close the responsive menu when clicking on an item
   $('.navbar-collapse li a:not(.dropdown-toggle)').bind('click touchstart', function () {
    $('.navbar-toggle:visible').click();
      });
  
  //Scroll if you click on an item of the navbar
   $('.navbar-collapse li a').click(function(e) {
       e.stopPropagation();
  
      var eid = $(this).attr('href');
      var top = $(eid).offset().top;
  
      $('html, body').animate({ scrollTop: top }, 800);
    });
      $(function() {
    $("form[name='needs-validation']").validate({
      rules: {
        firstname:{ 
          pattern:"[a-zA-Z]+",
          required:true
          },
        lastname:{
          required:"true",
          pattern:"[a-zA-Z]+"
        },
        email: {
          required: true,
          email: true
        },
        zipCode: {
          pattern:"[0-9,]",
          required: true,
          minlength: 5
        }
        },
        state: {
          required: true,
        },
      //Messages errors
      messages: {
          firstname: "Please enter your firstname",
          lastname: "Please enter your lastname",
          zipCode: "Please provide your Zip Code",
          password: {
              required: "Please provide a password",
              minlength: "Your password must be at least 5 characters long"
        },
          email: "Please enter a valid email address"
      },
      submitHandler: function(form) {
        form.submit();
      }
          });
      });
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>* {
   box-sizing: border-box;
  }
  body, html {
   margin: 0 auto;
   margin-top: 70px;
   padding: 0;
   font-family: 'Nunito Sans', sans-serif;
   font-size: 16px;
  }
  .navbar-default {
   background-color: white !important;
   box-shadow: 2px 1px rgba(75, 108, 183, 0.82) !important;
  }
  .navbar-header {
   height: 80px;
   background-color: transparent;
  }
  .logo {
   height: 60px;
   width: 60px;
   margin-top: -5px;
   border: 1 solid;
   border-color: transparent;
   border-radius: 4px;
  }
  a {
   text-decoration: none !important;
  }
  .btn1, .btn2 {
   font-size: 20px;
   font-family: 'Nunito Sans', sans-serif;
   font-weight: 600 ;
   padding: 1px;
   margin: 2px;
   margin-top: 10px;
   border: 5px solid transparent;
  }
  .btn1:hover , .btn2:hover {
   border-bottom: 5px solid;
   border-bottom-color: #4b6cb7;  /* fallback for old browsers */
   border-bottom-color: -webkit-linear-gradient(to right, #182848, #4b6cb7);  /* Chrome 10-25, Safari 5.1-6 */
   border-bottom-color: linear-gradient(to right, #182848, #4b6cb7); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  
  }
  .container-hero-section {
   display: grid;
   color:white;
   grid-template-columns:80px 80px;
   grid-template-rows: 80px 80px;
   width: 100%;
   height: 620px;
   max-width: 1500px 2fr;
   background-size: cover;
   background-repeat: no-repeat;
   background-position: center;;
  }
  .text-on-hero {
   display: grid;
   grid-column: 1 / 4;
   grid-row: 3 / 5;
   text-align:center;
   font-size: 40px;
   font-family: 'Alegreya', serif; 
   font-weight: 500; 
  }
  .main-content { 
   margin-top: 70px;
   width: 100%;
   text-align: justify;
   padding: 30px;
    font-stretch:normal;
   font-family: 'Nunito Sans', sans-serif;
   font-weight: 600;
  }
  h1 {
   font-family: 'Crimson Text', serif;
   font-weight: 600 ;
  }
  .iframe-container {
   margin-top: 40px;
  }
  .form-container {
   margin-top: 70px;
   margin-bottom: 20px;
  }
  .text-center {
   margin-bottom: 40px;
  }
  .form-labels {
   font-size: 8px;
   color:#434C5F;
   letter-spacing: 0.8px;
   padding: 10px;
   margin-bottom: 20px;
   margin-top: 20px;
  }
  .form-group {
   text-transform: uppercase;
   padding-top: 1px;
   padding-bottom: 1px;
   margin-right: 1px;
   margin-left: 1px; 
   width: 90%;
  }
  .form-text {
   text-transform: none;
  }
  input:hover {
   border:0;
   outline: solid;
   outline-color: azure;
  }
  .btn-continue {
   font-size: 10px;
   outline:0;
   border: 1px solid;
   border-color: #4b6cb7;
   border-radius: 18px;
   border-color:lightgray; 
   padding:3vmin;
   color: white;
   background-color: #4b6cb7;  /* fallback for old browsers */
   background-color: -webkit-linear-gradient(to right, #182848, #4b6cb7);  /* Chrome 10-25, Safari 5.1-6 */
   background-color: linear-gradient(to right, #182848, #4b6cb7); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ ;
   width: 124px;
   text-transform: uppercase;
   font-weight: bold;
   margin-top: 40px;
   margin-bottom: 70px;
  }
  
  .btn-continue:hover {
   cursor: pointer;
   box-shadow:0 5px 10px rgba(0, 0, 0, 0.1);
  }
  .footer-wrapper {
   display: block;
   width: 100%;
   background: #74ebd5;  /* fallback for old browsers */
   background: -webkit-linear-gradient(to right, #ACB6E5, #74ebd5);  /* Chrome 10-25, Safari 5.1-6 */
   background: linear-gradient(to right, #ACB6E5, #74ebd5); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
   height: 150px;
   padding: 10px;
  }
  .footer-wrapper li {
   float: right;
   list-style: none;
   color:#337ab7;
   cursor: pointer;
   font-size: 12px;
  }
  .footer-wrapper span {
   float: left;
   margin-right: 12px;
   margin-left: 12px;
   font-size: 24px;
  }
  @media (max-width: 800px) {
  .logo {
    height: 40px;
    width: 40px;
   }
   .text-on-hero {
   grid-column: 1 / 4;
   grid-row: 3 / 4;
   text-align:center;
   font-size: 20px;
   font-weight: 400; 
  }
   .container-hero-section {
    height: 420px;
   }
   html,body {
    margin-top: 50px;
   }
   .nav-header-right-collapse {
    background-color: white;
   }
  }
  @media (max-width: 485px){
   .footer-wrapper li {
    position:relative;
    top:20px;
    right:50px;
    text-align: justify;
    }
   .footer-wrapper span i {
    position: relative;
    right: -90px;
   }
  }
  @media (min-width: 1300px){
    body,html,h1 {
    margin: 0 auto;
    }
   .container-hero-section {
    margin-top: 120px;
   }
   .navbar-default {
    height: 100px;
    box-shadow: none !important;
   }
   .btn1,.btn2 {
    margin-top: 30px;
    font-size: 30px;
   }
   .logo {
    width: 80px;
    height: 80px;
   }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdn.jsdelivr.net/jquery.validation/1.15.1/jquery.validate.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"&gt;&lt;/script&gt;
  
  &lt;link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/&gt;
  
  
  &lt;div class="wrapper"&gt;
   &lt;nav class="navbar navbar-default navbar-fixed-top" id="banner"&gt;
    &lt;div class="container navbar-container"&gt;
     &lt;div class="navbar-header"&gt;
        &lt;a class="navbar-brand" href="#"&gt;
          &lt;img alt="Brand" src="https://cdn.dribbble.com/users/2790/screenshots/1678559/ab_monogram.gif" class="logo"&gt;
        &lt;/a&gt;
    &lt;button class="navbar-toggle" data-toggle="collapse" data-target=".nav-header-right-collapse"&gt;
    &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
    &lt;span class="icon-bar"&gt;&lt;/span&gt;
    &lt;span class="icon-bar"&gt;&lt;/span&gt;
    &lt;span class="icon-bar"&gt;&lt;/span&gt;
      &lt;/button&gt;
      &lt;/div&gt;
      &lt;div &gt;
    &lt;ul class="nav navbar-nav navbar-right collapse navbar-collapse nav-header-right-collapse" role="navigation"&gt;
   &lt;li class="btn1"&gt;&lt;a href="#about-us"&gt; About us&lt;/a&gt;&lt;/li&gt;
   &lt;li class="btn2"&gt;&lt;a href="#contact-us"&gt;Contact&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/div&gt;  
    &lt;/div&gt;
  &lt;/nav&gt;
  &lt;div class="container-hero-section" style="background-image: url(https://static.tumblr.com/4aa2d12cad2b611779826ebb25800842/9nimsoa/4Hymox5z5/tumblr_static_mistyforestagain.jpg);"&gt; &lt;p class="text-on-hero"&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
   tempor incididunt ut labore et dolore magna aliqua.&lt;/p&gt;
    &lt;/div&gt;&lt;!--Close hero section--&gt;
    &lt;div id="about-us"&gt;&lt;/div&gt;
     &lt;section class="main"&gt;
      &lt;div class="main-content col-lg-12"&gt;
        &lt;h1 class="text-center"&gt; About us &lt;/h1&gt;
      &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras tellus purus, consequat et interdum sed, maximus vitae justo. Nam finibus enim nec enim condimentum luctus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Duis ac rutrum libero. Suspendisse sed tincidunt mauris, vel finibus tellus. Vestibulum sit amet velit tortor. Aliquam aliquam urna vel tristique faucibus. Duis mattis condimentum metus quis sodales. Praesent sodales imperdiet nunc et suscipit. Curabitur velit velit, scelerisque vel urna sed, fermentum dignissim sem. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Suspendisse potenti.&lt;/p&gt;
  
  &lt;p&gt;Nullam massa ipsum, tempor ut sollicitudin at, bibendum nec turpis. Donec vel placerat arcu. Aenean accumsan rhoncus consequat. Nullam vel faucibus tellus. Praesent consequat metus in quam dapibus tincidunt. Cras tellus sapien, suscipit sed fringilla id, iaculis eu ex. Morbi metus dolor, sodales non dictum eget, gravida a enim. Sed porta leo vitae gravida ullamcorper.&lt;/p&gt;
  
  &lt;p&gt;Maecenas rutrum erat nisi, at bibendum ex sollicitudin eget. Fusce augue purus, efficitur nec malesuada eget, scelerisque vel metus. Nam sed rutrum arcu. Aliquam vel nunc ante. Nunc convallis libero vel aliquam convallis. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vestibulum&lt;/p&gt;
  &lt;!-- 16:9 aspect ratio --&gt;
  &lt;div class="embed-responsive embed-responsive-16by9 iframe-container"&gt;
    &lt;iframe width="80%" height="240px" src="https://www.youtube.com/embed/QijH4UAqGD8" class="embed-responsive-item"&gt;&lt;/iframe&gt;
  &lt;/div&gt;
      &lt;/div&gt;
        &lt;/section&gt;
      &lt;/br&gt;
        &lt;div id="contact-us"&gt;&lt;/div&gt;
        &lt;section&gt;
   &lt;div class="container form-container col-lg-12"&gt;
  &lt;form class="contact-form" role="form" name="needs-validation" action="none" data-toggle="validator"&gt;
      &lt;h1 class="text-center"&gt; Contact us &lt;/h1&gt;
    &lt;div class="form-group center-block"&gt;
    &lt;label for="input--email" id="input--email" class="form-labels control-label"&gt;Email address&lt;/label&gt;
    &lt;input type="email" class="form-control form-control-lg" placeholder="norman-geller@email.com"&gt;
    &lt;/div&gt;
    &lt;div class="form-group center-block"&gt;
  &lt;label for="input--name" id="input--name" class= "form-labels control-label"&gt;name&lt;/label&gt;
  &lt;input type="text" name="firstname"  pattern="[a-zA-Z]+" class="form-control form-control-lg" placeholder="your first name here"&gt;
    &lt;/div&gt;
    &lt;div class="form-group center-block"&gt;
  &lt;label for="input-last-name" id="input-last-name" class= "form-labels control-label"&gt; last name&lt;/label&gt;
  &lt;input type="text" name="lastname"  pattern="[a-zA-Z]+" class="form-control form-control-lg" placeholder="your last name goes here"&gt;
    &lt;/div&gt;
    &lt;div class="form-group center-block"&gt;
  &lt;label for="input--zip--code" id="input--zip--code" class="form-labels control-label"&gt; Zip code&lt;/label&gt;
  &lt;input type="number" name="zipCode" class="form-control form-control-lg" placeholder="US zip code"&gt;
  &lt;/div&gt;
  &lt;div class="form-group center-block has-feedback"&gt;
  &lt;label for="select-state" name="state" class="form-labels control-label"&gt; Select state&lt;/label&gt;
  &lt;select class="form-control"&gt;
    &lt;option value=" " &gt;Please select your state&lt;/option&gt;
    &lt;option value="AL"&gt;Alabama&lt;/option&gt;
    &lt;option value="AK"&gt;Alaska&lt;/option&gt;
    &lt;option value="AZ"&gt;Arizona&lt;/option&gt;
    &lt;option value="AR"&gt;Arkansas&lt;/option&gt;
    &lt;option value="CA"&gt;California&lt;/option&gt;
    &lt;option value="CO"&gt;Colorado&lt;/option&gt;
    &lt;option value="CT"&gt;Connecticut&lt;/option&gt;
    &lt;option value="DE"&gt;Delaware&lt;/option&gt;
    &lt;option value="DC"&gt;District Of Columbia&lt;/option&gt;
    &lt;option value="FL"&gt;Florida&lt;/option&gt;
    &lt;option value="GA"&gt;Georgia&lt;/option&gt;
    &lt;option value="HI"&gt;Hawaii&lt;/option&gt;
    &lt;option value="ID"&gt;Idaho&lt;/option&gt;
    &lt;option value="IL"&gt;Illinois&lt;/option&gt;
    &lt;option value="IN"&gt;Indiana&lt;/option&gt;
    &lt;option value="IA"&gt;Iowa&lt;/option&gt;
    &lt;option value="KS"&gt;Kansas&lt;/option&gt;
    &lt;option value="KY"&gt;Kentucky&lt;/option&gt;
    &lt;option value="LA"&gt;Louisiana&lt;/option&gt;
    &lt;option value="ME"&gt;Maine&lt;/option&gt;
    &lt;option value="MD"&gt;Maryland&lt;/option&gt;
    &lt;option value="MA"&gt;Massachusetts&lt;/option&gt;
    &lt;option value="MI"&gt;Michigan&lt;/option&gt;
    &lt;option value="MN"&gt;Minnesota&lt;/option&gt;
    &lt;option value="MS"&gt;Mississippi&lt;/option&gt;
    &lt;option value="MO"&gt;Missouri&lt;/option&gt;
    &lt;option value="MT"&gt;Montana&lt;/option&gt;
    &lt;option value="NE"&gt;Nebraska&lt;/option&gt;
    &lt;option value="NV"&gt;Nevada&lt;/option&gt;
    &lt;option value="NH"&gt;New Hampshire&lt;/option&gt;
    &lt;option value="NJ"&gt;New Jersey&lt;/option&gt;
    &lt;option value="NM"&gt;New Mexico&lt;/option&gt;
    &lt;option value="NY"&gt;New York&lt;/option&gt;
    &lt;option value="NC"&gt;North Carolina&lt;/option&gt;
    &lt;option value="ND"&gt;North Dakota&lt;/option&gt;
    &lt;option value="OH"&gt;Ohio&lt;/option&gt;
    &lt;option value="OK"&gt;Oklahoma&lt;/option&gt;
    &lt;option value="OR"&gt;Oregon&lt;/option&gt;
    &lt;option value="PA"&gt;Pennsylvania&lt;/option&gt;
    &lt;option value="RI"&gt;Rhode Island&lt;/option&gt;
    &lt;option value="SC"&gt;South Carolina&lt;/option&gt;
    &lt;option value="SD"&gt;South Dakota&lt;/option&gt;
    &lt;option value="TN"&gt;Tennessee&lt;/option&gt;
    &lt;option value="TX"&gt;Texas&lt;/option&gt;
    &lt;option value="UT"&gt;Utah&lt;/option&gt;
    &lt;option value="VT"&gt;Vermont&lt;/option&gt;
    &lt;option value="VA"&gt;Virginia&lt;/option&gt;
    &lt;option value="WA"&gt;Washington&lt;/option&gt;
    &lt;option value="WV"&gt;West Virginia&lt;/option&gt;
    &lt;option value="WI"&gt;Wisconsin&lt;/option&gt;
    &lt;option value="WY"&gt;Wyoming&lt;/option&gt;
  &lt;/select&gt;
    &lt;/div&gt;
  &lt;button class="btn-continue center-block" type="submit"&gt;Continue &lt;span class="glyphicon glyphicon-send" style="margin-left: 10px;"&gt;&lt;/span&gt;&lt;/button&gt;
    &lt;/form&gt;
  &lt;/div&gt;
  &lt;/section&gt;
  &lt;footer&gt;
    &lt;div class="footer-wrapper container-fluid col-lg-12"&gt;
      &lt;ul&gt;
        &lt;span&gt;&lt;a href="#"&gt;&lt;i class="fa fa-rss-square" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/span&gt;
        &lt;span&gt;&lt;a href="#"&gt;&lt;i class="fa fa-youtube" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/span&gt;
        &lt;span&gt;&lt;a href="#"&gt;&lt;i class="fa fa-twitter" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/span&gt;
        &lt;li&gt;&lt;a href="#"&gt; &lt;strong&gt;Privacy and informacion Processing Policy, etc.&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt; Legal Information |&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt; Terms of use |&lt;/a&gt;&lt;/li&gt;
        &lt;/br&gt;
        &lt;li&gt;&lt;i class="fa fa-registered" aria-hidden="true"&gt;&lt;/i&gt;2018 Lorem Impsum Corporation | &lt;/li&gt;
        &lt;li&gt;Lorem Impsum Advanced Media, L.I. All rights reserved.&lt;/li&gt;
         &lt;/ul&gt;
       &lt;/div&gt;
    &lt;/footer&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>This is the codepen link:
  <a href="https://codepen.io/manAbl/pen/RxBKEz" rel="nofollow noreferrer">https://codepen.io/manAbl/pen/RxBKEz</a></p>