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


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.


<script src=""></script> 
<div id="main">
  <h1 id="title" class="i1"> Harry Potter </h1>
  <div id="img-div" class="i2"><img id="image" alt="Harry Potter" src="#" ><p id="img-caption"> The Boy who Lived</p> </div> 
  <div id="tribute-info" class="i3"><p>What is Lorem Ipsum?
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Why do we use it?
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).

 <div id="footer" class="i4">
    <a id="tribute-link" href="#" target="_blank">A Link to my source</a>


<!-- This code was created by Preston Kearns, you can find my website at -->


                * {
  margin: 0;
  padding: 0;
body {
  background-color: #e9bf5f;
#main {
  background-color: #fffdd0;
  height: 100%;
  width: 90%;
  margin: auto;
  padding: 10px;
  font-size: 16px;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: auto auto 1fr auto;
img {
  margin: auto;
  padding: 20px;
#tsunaphoto {
p {
  margin: 10px;
  font-size: 1.2em;
#title {
h1 {
#footer {
.i1 {
  grid-area: header;
.i2 {
  grid-area: photo;
.i3 {
  grid-area: content;
.i4 {
  grid-area: footer;

@media (min-width: 600px) {
  #main {
    grid-template-columns: 50% 1fr;
    grid-template-rows: 1fr auto 1fr;
      "header header "
      "photo content"
      "footer footer";

  img {
    width: 75%;
    margin: auto;
    padding: 20px;
  #tribute-link {



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

  - Select the project you would 
    like to complete from the dropdown 
  - Click the "RUN TESTS" button to
    run the tests against the blank 
  - 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.