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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<!-- ^^^DO NOT DELETE ABOVE UNTIL PROJECT IS FINISHED^^^ -->

<div id="main" position="center">
  <h1 id="title">Heart</h1>
  <div id="img-div">
    <img id="image" src="https://i.imgur.com/QPIMhNu.png" alt="A rainbow heart in the dark">
    <p id="img-caption">A painting by <a href="https://www.deviantart.com/orpheus11-2">Orpheus11-2.</a></p>
    
    <p id="tribute-info">This website is devoted to individuals struggling with emotional and psychological issues ranging from anxiety, depression, suicidal thoughts, bipolar disorder, and more. Those going through trials in their life and feel as if they cannot go on.</p>
    
    
              
            
!

CSS

              
                #main {
    position:relative;
}

{
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  letter-spacing: 0.02em;
  box-sizing: border-box;
  position: relative;
}

body {
  background-image: url("http://blog.hostbaby.com/backgrounds/bg_abstract.jpg");
  background-color: black;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#title {
  font-family: 'Georgia', serif;
  margin: 10px 450px 50px;
}

#image {
width: 100%;
height: auto;
max-width: 625px;
margin-left: auto;
margin-right: auto;
display: block;
}

#img-caption {
  font-family: 'Georgia', serif;
  position: relative;
  margin: 10px 850px 50px;
}

#tribute-info{
  border:1px solid #999999;
  color: #737373;
  font-size:30px;
  width:50%;
  display: inline-block;
  position: relative;
  margin: 0px 450px 50px;
  height: auto;
  background-color: white;
 }
              
            
!

JS

              
                
              
            
!
999px

Console