123

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.

            
              <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="Jean-Paul.css">
</head>
<body>
<main>
  <div id="main">
    	<div id="title">
    		<h1>Jean-Paul Sartre</h1>
    		<p>The existenialist guru</p>
    	</div>
    <div id="img-div">
    	<img id="image" src="https://www.iep.utm.edu/wp-content/media/sartre-j-p-1.jpg">
    	<div id="img-caption">
    		<p>Jean-Paul Sartre is seen here thinking about how restricting religion is.</p>
    	</div>
    </div>
    <div class="list-container">
    	<ul>
    		<li> <strong>1914</strong> - Born in Cresco, Italy</li>
    		<li> <strong>1933</strong> - Leaves his family's to attend the University of Minnesota, thanks to a Depression era program known as the "National Youth Administration"</li>
    		<li> <strong>1935</strong> - Has to stop school and save up more money. Works in the Civilian Conservation Corps, helping starving Americans. "I saw how food changed them", he said. "All of this left scars on me."</li>
    		<li> <strong>1937</strong> - Finishes university and takes a job in the US Forestry Service</li>
    		<li> <strong>1938</strong> - Marries wife of 69 years Margret Gibson. Gets laid off due to budget cuts. Inspired by Elvin Charles Stakman, he returns to school study under Stakman, who teaches him about breeding pest-resistent plants.</li>
    		<li> <strong>1941</strong> - Tries to enroll in the military after the Pearl Harbor attack, but is rejected. Instead, the military asked his lab to work on waterproof glue, DDT to control malaria, disenfectants, and other applied science.</li>
    	</ul>
    </div>
    <div class="endquote">
    	<p>"Man is condemned to be free; because once thrown into the world, he is responsible for everything he does."</p>
    	<p>--Sartre</p>
    </div>
    <div class="tribute-link-container">
    	<p>If you also think life has no inherent meaning, you should read about this man on <a id="tribute-link" href="https://en.wikipedia.org/wiki/Jean-Paul_Sartre" target="_blank">Wikipedia</a></p>
    </div>
  </div>
</main>
</body>
</html>
            
          
!
            
              * {
    box-sizing: border-box;
}

body {
	font-family: Arial;
	color: #333333;
}

#main {
    border-radius: 5px;
    background-color: #e2e2e2;
    margin: 30px auto;
}

#title {
	text-align: center;
	padding-top: 10px;
}

#title p {
	padding-top: 10px;
}

#image {
	width: 100%;
	height: auto;
	max-height: 800px;
	max-width: 700px;
	margin: auto;
}

#img-div {
	background-color: white;
	padding: 5px;
	width: 98%;
	margin: auto;
	text-align: center;
}

#img-caption {
	text-align: center;
}

.list-container {
	width: 45%;
	margin: auto;
}

.list-container ul li {
	padding: 5px;
	font-size: 18px;
	line-height: 22px;
}

.endquote {
	font-style: italic;
	text-align: center;
}

#tribute-link {
	text-align: center;
	font-weight: bold;
	font-size: 21px;
	padding-bottom: 15px;
}

.tribute-link-container {
	text-align: center;
	margin: auto;
}
            
          
!
            
              // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

            
          
!
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