title: Bootstrap 3 jumbotron not positioned correctly
body: <p>I made some changes to my code and now I cannot figure out what I did wrong, but now my Bootstrap 3 <code>jumbotron</code> is completely off. I don't know why but my HTML files also keep getting corrupted, losing any work I spent hours on. I have notepad++ and atom and I use both I'm guessing that may be the problem.</p>
  
  <p>How do I get my <code>jumbotron</code> working again like I had it before and what caused it to mess up?</p>
  
  <p>My HTML code after I changed it:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
     &lt;head&gt;
        &lt;title&gt;Bootstrap 3&lt;/title&gt;
        &lt;html lang="en-US"&gt;
           &lt;meta charset="UTF-8"&gt;
           &lt;!-- Latest compiled and minified CSS --&gt;
           &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"&gt;
           &lt;!-- jQuery library --&gt;
           &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"&gt;&lt;/script&gt;
           &lt;!-- Latest compiled JavaScript --&gt;
           &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"&gt;&lt;/script&gt;
           &lt;meta name="viewport" content="width=device-width, intial-scale=1.0"&gt;
           &lt;link href="designstyles.css" rel="stylesheet"&gt;
     &lt;/head&gt;
     &lt;body&gt;
     &lt;div class="navbar navbar-inverse navbar-fixed-top"&gt; &lt;!-- creating a black navbar--&gt;
     &lt;!-- this container class keeps things contained, brand will stay at top--&gt;
     &lt;div class="container"&gt;
     &lt;div class="navbar-header"&gt;
     &lt;a href="#" class="navbar-brand"&gt;Cryptocurrency Guidance&lt;/a&gt;
     &lt;!--button--&gt;  &lt;button class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse"&gt;
     &lt;!-- three spans for bars stacked on eachother for hamburger icon--&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;!--closing div for navbar-header--&gt;
     &lt;/div&gt;
     &lt;!-- starting div for the navbar to collapse--&gt;
     &lt;div class="collapse navbar-collapse navHeaderCollapse"&gt; &lt;!--target--&gt;
     &lt;ul class="nav navbar-nav navbar-right"&gt;
     &lt;!-- sets styling and pos to right --&gt;
     &lt;li class="active"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a href="guide.html"&gt;My Bitcoin Guide&lt;/a&gt;&lt;/li&gt; &lt;!-- link guide html page here --&gt;
     &lt;li class="dropdown"&gt;
     &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;Social Media&lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt;
     &lt;ul class="dropdown-menu"&gt;
     &lt;li&gt;&lt;a href="#"&gt;Twitter&lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a href="#"&gt;Facebook&lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a href="#"&gt;Placeholder&lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a href="#"&gt;Instagram&lt;/a&gt;&lt;/li&gt;
     &lt;/ul&gt;
     &lt;/li&gt;
     &lt;li&gt;&lt;a href="#"&gt;About&lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt;
     &lt;/ul&gt;
     &lt;/div&gt;
     &lt;/div&gt; &lt;!-- container ending div closing--&gt;
     &lt;/div&gt; &lt;!--  starting nav bar div closing--&gt;
     &lt;div class="container"&gt;
     &lt;div class="jumbotron text-center"&gt;
     &lt;div class="page-header"&gt;
     &lt;h1&gt;Bitcoin&lt;/h1&gt;
     &lt;/div&gt;
     &lt;p&gt;A peer to peer electronic &lt;span class="importance"&gt;cash&lt;/span&gt; system&lt;/p&gt;
     &lt;a href="https://bitcoin.org/bitcoin.pdf" class="btn btn-default"&gt;Read whitepaper&lt;/a&gt;
     &lt;a class="btn btn-info"&gt;Tweet it&lt;/a&gt;
     &lt;/div&gt;
     &lt;/div&gt;
     &lt;div class="container"&gt; &lt;!-- starting carousel container --&gt;
     &lt;div id="myCarousel" class="carousel slide" data-ride="carousel"&gt;
     &lt;!-- Indicators --&gt;
     &lt;ol class="carousel-indicators"&gt;
     &lt;li data-target="#myCarousel" data-slide-to="0" class="active"&gt;&lt;/li&gt;
     &lt;li data-target="#myCarousel" data-slide-to="1"&gt;&lt;/li&gt;
     &lt;li data-target="#myCarousel" data-slide-to="2"&gt;&lt;/li&gt;
     &lt;/ol&gt;
     &lt;!-- Wrapper for slides --&gt;
     &lt;div class="carousel-inner"&gt;
     &lt;div class="item active"&gt;
     &lt;img src="bitcoinwhitepaper.jpg" alt="bitcoin" style="width:100%;"&gt;
     &lt;/div&gt;
     &lt;div class="item"&gt;
     &lt;img src="bitcoin.jpg" alt="bitcoinwhitepaper" style="width:100%;"&gt;
     &lt;/div&gt;
     &lt;div class="item"&gt;
     &lt;img src="blockchain.png" alt="blockchain" style="width:100%;"&gt;
     &lt;/div&gt;
     &lt;/div&gt;
     &lt;!-- Left and right controls --&gt;
     &lt;a class="left carousel-control" href="#myCarousel" data-slide="prev"&gt;
     &lt;span class="glyphicon glyphicon-chevron-left"&gt;&lt;/span&gt;
     &lt;span class="sr-only"&gt;Previous&lt;/span&gt;
     &lt;/a&gt;
     &lt;a class="right carousel-control" href="#myCarousel" data-slide="next"&gt;
     &lt;span class="glyphicon glyphicon-chevron-right"&gt;&lt;/span&gt;
     &lt;span class="sr-only"&gt;Next&lt;/span&gt;
     &lt;/a&gt;
     &lt;/div&gt;
     &lt;/div&gt;  &lt;!-- ending carousel container --&gt;
     &lt;div class="container"&gt;
     &lt;div class="row"&gt;
     &lt;div class="col-md-3"&gt;
     &lt;h3&gt;&lt;a href="#"&gt;Loren Ipsum&lt;/a&gt;&lt;/h3&gt;
     &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum&lt;/p&gt;
     &lt;a class="btn btn-default"&gt;Read more&lt;/a&gt;
     &lt;/div&gt;
     &lt;div class="col-md-3"&gt;
     &lt;h3&gt;&lt;a href="#"&gt;Loren Ipsum&lt;/a&gt;&lt;/h3&gt;
     &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum&lt;/p&gt;
     &lt;a class="btn btn-default"&gt;Read more&lt;/a&gt;
     &lt;/div&gt;
     &lt;div class="col-md-3"&gt;
     &lt;h3&gt;&lt;a href="#"&gt;Loren Ipsum&lt;/a&gt;&lt;/h3&gt;
     &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum&lt;/p&gt;
     &lt;a class="btn btn-default"&gt;Read more&lt;/a&gt;
     &lt;/div&gt;
     &lt;div class="col-md-3"&gt;
     &lt;h3&gt;&lt;a href="#"&gt;Loren Ipsum&lt;/a&gt;&lt;/h3&gt;
     &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum&lt;/p&gt;
     &lt;a class="btn btn-default"&gt;Read more&lt;/a&gt;
     &lt;/div&gt;
     &lt;/div&gt;
     &lt;/div&gt;
     &lt;div class="container"&gt;
     &lt;div class="aligncolumn"&gt;
     &lt;!-- thumbnail --&gt;
     &lt;div class = "row"&gt;
     &lt;div class = "col-sm-6 col-md-3"&gt;
     &lt;div class = "thumbnail"&gt;
     &lt;img src = "300x200.jpg" alt = "Generic placeholder thumbnail"&gt;
     &lt;/div&gt;
     &lt;div class = "caption"&gt;
     &lt;h3&gt;Thumbnail label&lt;/h3&gt;
     &lt;p&gt;Some sample text. Some sample text.&lt;/p&gt;
     &lt;p&gt;
     &lt;a href = "#" class = "btn btn-primary" role = "button"&gt;
     Button
     &lt;/a&gt;
     &lt;a href = "#" class = "btn btn-default" role = "button"&gt;
     Button
     &lt;/a&gt;
     &lt;/p&gt;
     &lt;/div&gt;
     &lt;/div&gt;
     &lt;div class = "col-sm-6 col-md-3"&gt;
     &lt;div class = "thumbnail"&gt;
     &lt;img src = "300x200.jpg" alt = "Generic placeholder thumbnail"&gt;
     &lt;/div&gt;
     &lt;div class = "caption"&gt;
     &lt;h3&gt;Thumbnail label&lt;/h3&gt;
     &lt;p&gt;Some sample text. Some sample text.&lt;/p&gt;
     &lt;p&gt;
     &lt;a href = "#" class = "btn btn-primary" role = "button"&gt;
     Button
     &lt;/a&gt;
     &lt;a href = "#" class = "btn btn-default" role = "button"&gt;
     Button
     &lt;/a&gt;
     &lt;/p&gt;
     &lt;/div&gt;
     &lt;/div&gt;
     &lt;div class = "col-sm-6 col-md-3"&gt;
     &lt;div class = "thumbnail"&gt;
     &lt;img src = "300x200.jpg" alt = "Generic placeholder thumbnail"&gt;
     &lt;/div&gt;
     &lt;div class = "caption"&gt;
     &lt;h3&gt;Thumbnail label&lt;/h3&gt;
     &lt;p&gt;Some sample text. Some sample text.&lt;/p&gt;
     &lt;p&gt;
     &lt;a href = "#" class = "btn btn-primary" role = "button"&gt;
     Button
     &lt;/a&gt;
     &lt;a href = "#" class = "btn btn-default" role =" button"&gt;
     Button
     &lt;/a&gt;
     &lt;/p&gt;
     &lt;/div&gt;
     &lt;/div&gt;
     &lt;div class = "col-sm-6 col-md-3"&gt;
     &lt;div class = "thumbnail"&gt;
     &lt;img src = "300x200.jpg" alt = "Generic placeholder thumbnail"&gt;
     &lt;/div&gt;
     &lt;div class = "caption"&gt;
     &lt;h3&gt;Thumbnail label&lt;/h3&gt;
     &lt;p&gt;Some sample text. Some sample text.&lt;/p&gt;
     &lt;p&gt;
     &lt;a href = "#" class = "btn btn-primary" role = "button"&gt;
     Button
     &lt;/a&gt;
     &lt;a href = "#" class = "btn btn-default" role = "button"&gt;
     Button
     &lt;/a&gt;
     &lt;/p&gt;
     &lt;/div&gt;
     &lt;/div&gt;
     &lt;/div&gt;
     &lt;/div&gt;
     &lt;/div&gt;
     &lt;/div&gt;
     &lt;!-- navbar navbar default navbar-fixed-bottom footer--&gt;
     &lt;div class="footer"&gt;
     &lt;div class="navbar navbar-default navbar-fixed-bottom"&gt;
     &lt;div class="container"&gt;
     &lt;p class="navbar-text pull-left"&gt;Site build by Chris R&lt;/p&gt;
     &lt;a href="https://www.youtube.com/channel/UC_4p45CXlEXSYaPMIF80QlA?view_as=subscriber" class="navbar-btn btn-danger btn pull-right"&gt;Subscribe on YouTube&lt;/a&gt;
     &lt;/div&gt;
     &lt;/div&gt;
     &lt;/div&gt;
  </code></pre>
  
  <p>My HTML code before I changed it that works:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
    &lt;title&gt;Bootstrap 3&lt;/title&gt;
    &lt;html lang="en-US"&gt;
    &lt;meta charset="UTF-8"&gt;
       &lt;!-- Latest compiled and minified CSS --&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"&gt;
  
  &lt;!-- jQuery library --&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;!-- Latest compiled JavaScript --&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"&gt;&lt;/script&gt;
      &lt;meta name="viewport" content="width=device-width, intial-scale=1.0"&gt;
      &lt;link href="designstyles.css" rel="stylesheet"&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div class="navbar navbar-inverse navbar-static-top"&gt; &lt;!-- creating a black navbar--&gt;
      &lt;!-- this container class keeps things contained, brand will stay at top--&gt;
        &lt;div class="container"&gt;
          &lt;div class="navbar-header"&gt;
            &lt;a href="#" class="navbar-brand"&gt;Enthusiastic Builds&lt;/a&gt;
        &lt;!--button--&gt;  &lt;button class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse"&gt;
             &lt;!-- three spans for bars stacked on eachother for hamburger icon--&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;!--closing div for navbar-header--&gt;
          &lt;/div&gt;
           &lt;!-- starting div for the navbar to collapse--&gt;
          &lt;div class="collapse navbar-collapse navHeaderCollapse"&gt; &lt;!--target--&gt;
  
            &lt;ul class="nav navbar-nav navbar-right"&gt;
                    &lt;!-- sets styling and pos to right --&gt;
              &lt;li class="active"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Blog&lt;/a&gt;&lt;/li&gt;
              &lt;li class="dropdown"&gt;
                &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;Social Media&lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt;
                &lt;ul class="dropdown-menu"&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Twitter&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Facebook&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Instagram&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Instagram&lt;/a&gt;&lt;/li&gt;
  
  
                &lt;/ul&gt;
  
              &lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;About&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt;
  
  
  
            &lt;/ul&gt;
  
          &lt;/div&gt;
  
  
        &lt;/div&gt; &lt;!-- container ending div closing--&gt;
  
    &lt;/div&gt; &lt;!--  starting nav bar div closing--&gt;
  
    &lt;div class="container"&gt;
      &lt;div class="jumbotron text-center"&gt;
        &lt;div class="page-header"&gt;
        &lt;h1&gt;Gaming Build&lt;/h1&gt;
      &lt;/div&gt;
        &lt;p&gt;Build the &lt;span class="importance"&gt;ultimate&lt;/span&gt; quality gaming budget build.&lt;/p&gt;
        &lt;a class="btn btn-default"&gt;Watch now&lt;/a&gt;
        &lt;a class="btn btn-info"&gt;Tweet it&lt;/a&gt;
      &lt;/div&gt;
  
    &lt;/div&gt;
    &lt;div class="container"&gt;
      &lt;h2&gt;Dumby Text&lt;/h2&gt;
      &lt;div id="myCarousel" class="carousel slide" data-ride="carousel"&gt;
        &lt;!-- Indicators --&gt;
        &lt;ol class="carousel-indicators"&gt;
          &lt;li data-target="#myCarousel" data-slide-to="0" class="active"&gt;&lt;/li&gt;
          &lt;li data-target="#myCarousel" data-slide-to="1"&gt;&lt;/li&gt;
          &lt;li data-target="#myCarousel" data-slide-to="2"&gt;&lt;/li&gt;
        &lt;/ol&gt;
  
        &lt;!-- Wrapper for slides --&gt;
        &lt;div class="carousel-inner"&gt;
          &lt;div class="item active"&gt;
            &lt;img src="la.jpg" alt="Los Angeles" style="width:100%;"&gt;
          &lt;/div&gt;
  
          &lt;div class="item"&gt;
            &lt;img src="chicago.png" alt="Chicago" style="width:100%;"&gt;
          &lt;/div&gt;
  
          &lt;div class="item"&gt;
            &lt;img src="ny.jpg" alt="New york" style="width:100%;"&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  
        &lt;!-- Left and right controls --&gt;
        &lt;a class="left carousel-control" href="#myCarousel" data-slide="prev"&gt;
          &lt;span class="glyphicon glyphicon-chevron-left"&gt;&lt;/span&gt;
          &lt;span class="sr-only"&gt;Previous&lt;/span&gt;
        &lt;/a&gt;
        &lt;a class="right carousel-control" href="#myCarousel" data-slide="next"&gt;
          &lt;span class="glyphicon glyphicon-chevron-right"&gt;&lt;/span&gt;
          &lt;span class="sr-only"&gt;Next&lt;/span&gt;
        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;div class="container"&gt;
    &lt;div class="row"&gt;
      &lt;div class="col-md-3"&gt;
        &lt;h3&gt;&lt;a href="#"&gt;Loren Ipsum&lt;/a&gt;&lt;/h3&gt;
        &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum&lt;/p&gt;
        &lt;a class="btn btn-default"&gt;Read more&lt;/a&gt;
      &lt;/div&gt;
      &lt;div class="col-md-3"&gt;
          &lt;h3&gt;&lt;a href="#"&gt;Loren Ipsum&lt;/a&gt;&lt;/h3&gt;
        &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum&lt;/p&gt;
        &lt;a class="btn btn-default"&gt;Read more&lt;/a&gt;
      &lt;/div&gt;
      &lt;div class="col-md-3"&gt;
    &lt;h3&gt;&lt;a href="#"&gt;Loren Ipsum&lt;/a&gt;&lt;/h3&gt;
    &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum&lt;/p&gt;
        &lt;a class="btn btn-default"&gt;Read more&lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;!-- navbar navbar default navbar-fixed-bottom footer--&gt;
    &lt;div class="navbar navbar-default navbar-fixed-bottom"&gt;
  
  &lt;div class="container"&gt;
    &lt;p class="navbar-text pull-left"&gt;Site build by Chris&lt;/p&gt;
    &lt;a href="#" class="navbar-btn btn-danger btn pull-right"&gt;Subscribe on You-Tube&lt;/a&gt;
    &lt;/div&gt;
  
  
  
  </code></pre>