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. 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

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

              
                <figure id="instructions">
   <h5><a href="#" id="hideinstructions" title="Close Instructions"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/228208/close_window.png" /></a></h5>

   <h3>VC238 Challenge</h3>
   <h2>Keep Calm and Code On</h2>
   <p><em>Remember to first log into your CodePen account, then <strong>Fork</strong> this Pen to begin your work.</em></p>
  
   <p>Using the provided Pen, add CSS code to recreate the “Keep Calm” poster shown in <a href="https://vc238.chemeketa.vc/challenges/keep_calm/keep_calm_example.png" target="_blank">this example</a> (png) as closely as you can. Use the provided font in your page (the CSS to include it is already in this Pen). The crown image (link below) must be added as a background image. Remember to not alter the &lt;body&gt; HTML in any way.</p>
   <ul>
	 <li><em>Crown Image URL:</em> https://vc238.chemeketa.vc/challenges/keep_calm/crown.png</li>
      <li>Red Color: #bf3831;</li>
         <li>Width: 800px</li>
   </ul>

   <h4>Requirements</h4>
   <p>Name this pen <em>Challenge 02 - Keep Calm</em>. To turn in this assignment, create a link to it from your class Landing page. This Challenge is due at the beginning of class on <strong>Tuesday, October 27th, 2020</strong> (Week 05).</p></figure>

<!-- End Instructions -->

<section id="poster">

   <p>Keep Calm</p>
	<p class="sm">and</p>
	<p>Code On</p>

</section>
              
            
!

CSS

              
                /* To hide the instructions, uncomment the display property below (Command-/), or click on the close icon. */
figure#instructions {
/*    display: none; */
}

@font-face{
		font-family: 'KeepCalm';
		src: url('https://vc238.chemeketa.vc/challenges/keep_calm/fonts/KeepCalm-Medium.ttf') format('truetype');
		font-weight: normal;
		font-style: normal;
}


/* Student CSS goes here */

p {
   font-family: 'KeepCalm';
}
              
            
!

JS

              
                	$( document.body ).ready(function () {

      $( "#hideinstructions" ).click(function() {
			$( "#instructions" ).hide( "fast", function() {
			});
		});      
      
	});
              
            
!
999px

Console