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

              
                <body>
  <link>
  <main id="main">
    <section id="title">
      <h1>Jasminder-Pal Singh</h1>
      <h2><em>In memory of the gentle giant with an infectious smile</em></h2>
    </section>

     <figure id="img-div">
        <img id="image" src="https://preview.ibb.co/nRodu7/Screen_Shot_2018_04_13_at_4.png" alt="Photo of JP">

        <figcaption id="image-caption">
          <p><strong>(JP is on the left, I am on his right; Union Square, NYC)</strong></p>
        </figcaption>
      </figure>
    <section>
      <div id="tribute-info">
        <h3><strong>JP, like millions of other troubled young adults, did not know to get help. If you know someone who needs help, please do not ignore the signs.</strong></h3>
        <h3>Here are some resources to help someone you know or youself: Suicide Prevention Lifeline: 1-800-273-TALK</h3>
        <h3>Crisis Text Line</strong>, the free, nationwide, 24/7 text message service for people in crisis, is here to support. For support in the United States, text HELLO to 741741 or message at facebook.com/CrisisTextLine.</strong>
          <h3><a href="https://www.crisistextline.org/">FOR SUPPORT OUTSIDE OF THE U.S., CLICK HERE</a>
    </section>
    <section id="title">
      <h3>COMMON MISCONCEPTIONS ABOUT SUICIDE</h3>
    </section>
    <section id="facts">
      <h4>
        <li>Almost everyone who attempts suicide has given some clue or warning. Don’t ignore even indirect references to death or suicide. Statements like "You'll be sorry when I'm gone," "I can't see any way out,"—no matter how casually or jokingly said—may
          indicate serious suicidal feelings. </li>
        <li>Most suicidal people are not psychotic or insane. They must be upset, grief-stricken, depressed or despairing, but extreme distress and emotional pain are not necessarily signs of mental illness.</li>
        <li>Even the most severely depressed person has mixed feelings about death, wavering until the very last moment between wanting to live and wanting to die. Most suicidal people do not want death; they want the pain to stop. The impulse to end it all,
          however overpowering, does not last forever.</li>
        <li> Studies of suicide victims have shown that more than half had sought medical help in the six months prior to their deaths. </li>
        <li> You don't give a suicidal person morbid ideas by talking about suicide. The opposite is true—bringing up the subject of suicide and discussing it openly is one of the most helpful things you can do. </li>
        <a id="tribute-link"; href="https://save.org/" target="_blank"><em>Source: SAVE - Suicide Awareness Voices of Education </em><a/></h4>
        </section>
        </main>
      <footer>
        <p>Written and Coded by<a href="https://twitter.com/NanaBillan"> Nardeen Billan </a> </footer>
</body>
              
            
!

CSS

              
                body {
  background: black;
  margin-top, margin-bottom: 40px;
  font-family:  "helvetica neue", "arial", "sans serf";
  color: white; 
}
#title {
  text-align: center;
}
h2 {
    position: relative;
    bottom: 15px;
}
#facts {
  text-align:left;
  
}
#image{
   display: block;  margin-left: auto; margin-right: auto;
}
#image-caption{
  color: white; 
  text-align: center;
}
a:hover {
  color: red;
}
footer {
  text-align: center;
}
#tribute-info {
  margin: 100px;
  border: 2px solid white;
  text-align: center;
}
#facts {
  margin: 50px;
}
li{
  line-height: 1.5em /* space is 1.5x the element font size - you can play with this number to your liking */
}


              
            
!

JS

              
                
              
            
!
999px

Console