Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="container-fluid entire-div">
  <div id="myCarousel" class="carousel slide" data-ride="carousel">
  <!-- Indicators -->
  <ol class="carousel-indicators">
    <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
    <li data-target="#myCarousel" data-slide-to="1"></li>
    <li data-target="#myCarousel" data-slide-to="2"></li>
    <li data-target="#myCarousel" data-slide-to="3"></li>
  </ol>

  <!-- Wrapper for slides -->
  <div class="carousel-inner" role="listbox">
    <div class="item active imageDiv">
      <img class="center-block imgClass" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/49/Elon_Musk_2015.jpg/220px-Elon_Musk_2015.jpg" alt="Portrait picture of Elon Musk">
      <div class="carousel-caption">
        <h3>Elon Musk</h3>
        <p>Tech entrepreneur</p>
      </div>
    </div>

    <div class="item imageDiv">
      <img class="center-block imgClass" src="https://farm3.staticflickr.com/2914/14240353517_80ae718490_b.jpg" alt="Picture of Falcon 9 Discover launch">
      <div class="carousel-caption">
        <h3>SpaceX</h3>
        <p>Falcon 9 Discover</p>
      </div>
    </div>

    <div class="item imageDiv">
      <img class="center-block imgClass" src="https://cdn.shopify.com/s/files/1/0001/5660/products/blue_large.jpg?v=1334085832">
      <div class="carousel-caption">
        <h3>Tesla</h3>
        <p>Where awesomeness comes to live</p>
      </div>
    </div>

    <div class="item imageDiv">
      <img class="center-block imgClass" src="http://www.solarcity.com/sites/default/files/aboutsc-trucks.png" alt="Picture of Solar City">
      <div class="carousel-caption">
        <h3>Solar City</h3>
        <p>Sustainable solar energy</p>
      </div>
    </div>
  </div>

      <!-- Left and right controls -->
  <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
    <span class="sr-only">Previous</span>
  </a>
  <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
    <span class="sr-only">Next</span>
  </a>
  </div>

  <div class="row lower-div">
    <div class="col-md-4"></div>
    <div class="col-md-4">
      <ul>
        <li>Born: Elon Reeve Musk
            June 28, 1971 (age 44)
            Pretoria, Transvaal, South Africa</li>
        <li>Residence: 	Bel Air, Los Angeles, California,       United States</li>
        <li>Occupation: Entrepreneur, engineer, inventor,       investor</li>
        <li>Known for: SpaceX, PayPal, Tesla Motors,           Hyperloop, SolarCity, OpenAI</li>
        <li>Titles: CEO and CTO of SpaceX
            CEO and Product architect of Tesla Motors
            Chairman of SolarCity
            Co-chairman of OpenAI</li>
            <li>Click <a href="https://en.wikipedia.org/wiki/Elon_Musk">here</a> to read full profile on Wikipedia</li>
       </ul>
    </div>
  </div>
  <footer>
  <div class="text-center">
    <hr>
    <p>This is a <a href="https://www.freecodecamp.com/nick88p" target="_blank">nick88p</a> production</p>
  </div>
  </footer>
</div>

            
          
!
            
              .imageDiv {
  height: 300px;
  
}

.imageDiv img {
  height: 100%;
  width: auto;
}

.entire-div {
  margin: 30px 30px 30px 30px;
}
.lower-div {
  margin-top: 10px;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console