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">
  <div class="row">
<h1 class="text-center">Mohandas Gandhi</h1>
<h2 class="text-center">Leader for Indian Civil Rights</h2>
<img src=""alt="Picture of Gandhi leading the Salt March" class="center-block">
  <p class="text-center">Mohandas Gandhi (right) leading the Salt March</p>
<div class="col-xs-4 col-xs-offset-4">
  <p>Timeline of Gandhi's life</p>
  <li><b>1869 </b>Mohandas Karamchand Gandhi is born in Porbandar, India.</li>
  <li><b>1883 </b>Gandhi marries Kasturbai Makhanji in an arranged marriage.</li>
  <li><b>1888 </b>Gandhi goes to London to enter law school. </li>
  <li><b>1891 </b>Gandhi returns to India to start his career as a lawyer. </li>
  <li><b>1893 </b>Gandhi goes to South Africa to work for a Muslim Indian law firm. </li>
  <li><b>1894 </b>Gandhi stays in South Africa. </li>
  <li><b>1896 </b>Gandhi publishes "The Green Pamphlet." </li>
  <li><b>1896 </b>Gandhi is refused entry into South Africa. </li>
  <li><b>1906 </b>Gandhi asks the Indian community of South African to refuse to comply with the Transvaal Asiatic Registration Act. </li>
  <li><b>1908 </b>Gandhi is arrested for the first time. </li>
  <li><b>1913 </b>Gandhi is given the title Mahatma. </li>
  <li><b>1930 </b>Gandhi publishes the Declaration of Independence of India. </li>
  <li><b>1930 </b>Gandhi leads the Salt March in India. </li>
  <li><b>1947 </b>Great Britain grants India and Pakistan their independence.</li>
  <li><b>1948 </b>Gandhi is assassinated in New Delhi. </li>
<p>Learn more about Mohandas Gandhi here: <a href="" target="blank">Wiki Page</a></p>
<p class="text-right">Created by Dylan Noble</p>
🕑 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.