Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <!doctype html>
<head>
  <link rel="stylesheet" href="styles.css">
  <h1 id="title"><em>A Tribute to Narendra Modi !!</em></h1>
</head>

<main>
    <div id="img-div">
	  <img src="https://i2.wp.com/www.yourselfquotes.com/wp-content/uploads/2017/11/Narendra-Modi-Words-in-Hindi.jpg" alt= "Prime Minister Narendra Modi">
	  <br>
	  <id = "image-caption">  "The night is very dark indeed! but lighting of a candle is also not forbidden!"  ~ Narendra Modi </id>
    </div>
	<div id="tableOfContents" class=fullCard>
	  <li><a href="#tribute-info">Brief timeline</a></li>
	  <br>
	  <li><a href="#part1"> Narendra Modi becomes India's PM</a></li>
	  <br>
      <li><a href="#part2"> Notable Policies and work</a></li>
	</div>
	
	
    <div id="tribute-info">
	  <br>
      <h2>Brief timeline</h2>
      <ul>
        <li><strong>1950</strong> - Born to Hiraba and Damodardas Modi in Vadnagar in the state of Gujarat (Mehsana district)</li>
        <li><strong>1965</strong> - Modi helped his father sell tea at the Vadnagar railway station and later ran a tea stall with his brother near a bus terminus. When India-Pakistan War Breaks Out he serves tea at Mehsana Railway Station to Jawans </li>
        <li><strong>1967</strong> - Engaged while still a child to Jashodaben, a girl from a family who lived close by, Modi rejected the arranged marriage at the same time he graduated from high school.[31] The resulting familial tensions contributed to his decision to leave home. He travels across India including the Himalayas, Rishikesh, Ramakrishna Mission</li>
        <li><strong>1972</strong> - became a full-time pracharak (campaigner) for the RSS</li>
        <li><strong>1987</strong> - Joins BJP as Organisation Secretary of Gujarat Unit.</li>
        <li><strong>2001</strong> - Sworn in as the Chief Minister of Gujarat.</li>
        <li><strong>2012</strong> - Leads BJP to yet another victory in the Gujarat Assembly Polls. Becomes CM for 4th time.</li>
		<li><strong>2014</strong> - Sworn in as Prime Minister of India</li>
      </ul> 
	</div>
	<br>
	<div id ="part1">
	  <h2>Narendra Modi becomes India's PM</h2>
	  <img  src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/Shri_Narendra_Modi_sworn_in_as_Prime_Minister.jpg/800px-Shri_Narendra_Modi_sworn_in_as_Prime_Minister.jpg">
    </div>
	<br>
	<div id ="part2">
	  <h2>Notable Policies and work</h2> 
	  <br>
	  <img class="logo1"  src="https://i.ndtvimg.com/mt/2014-09/Make-In-IndiaLogo650.jpg">
	  <img class="logo1"  src="http://www.businesswindo.com/info-cafe/uploads/594cccc075c0a324gst-updates.jpg">
      <img class="logo2"  src="http://smartcities.gov.in/upload/uploadfiles/images/Smart%20City%20Logo.jpg">
	  <img class="logo2" src="https://financefundas.in/wp-content/uploads/2017/11/Demonetisation.jpg">
	<br>
	  <img class="logo1" class="image" src="https://pbs.twimg.com/profile_images/899527331856867328/wzGFAs6p_400x400.jpg">
	  <img class="logo1" class="image" src="http://i1.wp.com/pmjandhanyojana.co.in/wp-content/uploads/2014/11/Pradhan-Mantri-Jan-Dhan-Yojana1.jpg">
	</div>
    <h5 class="clear">If you have time, you should read more about him on this <a id="tribute-link" href="https://en.wikipedia.org/wiki/Narendra_Modi" target="_blank">Wikipedia entry</a>.</h5>  
</main>
</html>
              
            
!

CSS

              
                html,body{
  font-family: Helvetica;
  text-align:center;
  min-width:260px;
  color:black;
}

#img-div{
  height: auto;
  width: auto;
  margin-top:20px;
  text-align: center;
  border-radius: 5px;
}

ul{
  max-width:550px;
  margin:0 auto;
  text-align:left;
}
li{
  margin: 10px;
}

#image-caption{
	 padding: 4px;
	 font-family: comic sans;
	 font-size: 20px;
	 font-style: italic;
	 font-weight: bold;
 }
 
.logo1{
	width : 280px;
	height: 200px;
	margin-left: 30px;
	float: left;
	border: 2px solid #ffae00;
	border-radius: 50%;
}
.logo2{
	width : 280px;
	height: 200px;
	float: right;
	margin-right: 30px;
	border: 2px solid #ffae00;
	border-radius: 50%;
}

#image-caption{
	clear: both;
	margin-top:20px;
}

#title{
  margin: auto;
  text-align : center;
  background: #ffae00;
  padding: 10px;
  font-family: monospace;
  font-size : 40px;
}

.table {
	display: table;   /* Allow the centering to work */
	margin: 0 auto;
}

ul#horizontal-list {
	border: 5px solid #ccc;
    border-radius: 5px;
    padding: 20px;
	min-width: 696px;
	list-style: none;
	margin-top:20px;
	
	}
	ul#horizontal-list li {
		display: inline;
	}
	
h5{
	clear: both;
	margin-top: 60px;
}	
              
            
!

JS

              
                

              
            
!
999px

Console