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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div id="main">
        <h1 id="title">Narendra Damodardas Modi — The Prime Minister of India</h1>
        <div id="img-div">
            <img src="" alt="" id="image">
            <div id="img-caption">Narendra Damodardas Modi</div>
        <div id="tribute-info">
            <p id="timeline-caption">Narendra Damodardas Modi is an Indian politician serving as the 14th and current Prime Minister of India since 2014. He was the Chief Minister of Gujarat from 2001 to 2014 and is the Member of Parliament for Varanasi. </p>
                <li><strong>Born:</strong>&nbsp;&#8212;&nbsp;17 September 1950 (age 69 years), Vadnagar</li>
                <li><strong>Full name:</strong>&nbsp;&#8212;&nbsp; Narendra Damodardas Modi</li>
                <li><strong>Height:</strong>&nbsp;&#8212;&nbsp;1.7 m</li>
                <li><strong>Spouse:</strong>&nbsp;&#8212;&nbsp;Jashodaben Narendrabhai Modi (m. 1968)</li>
                <li><strong>Education:</strong>&nbsp;&#8212;&nbsp;Gujarat University (1983), University of Delhi (1978), School of Open Learning, University of Delhi</li>
            <p class="tribute-link-container">If you have time, you should read more about this incredible human being on his <a href="" id="tribute-link" target="_blank">Wikipedia entry</a></p>


                @import url(',700');

body {
    background: linear-gradient(35deg, #f5f5f5, #c9c9c9);
    font-family: 'Domine', serif;

#main {
    margin: auto;
    width: 85%;
#title, #img-caption {
    text-align: center;

#img-caption {
    margin: 15px;
    font-size: 16px;
    font-weight: bold;

#tribute-info {
    margin: 5px auto;
    width: 85%;
    font-size: 16px;

    font-size: 17px;
    font-weight: 400;

img {
    margin: auto;
    max-width: 100%;
    display: block;
    height: auto;

ul {
    list-style: none;
    padding: 5px 0;    

li {
    margin: 15px auto;

.tribute-link-container {
  font-style: italic;
  font-size: 14px;