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

              
                <header>
  <h1 id="title">Dr. Henry Lindlahr</h1>
  <div id="sub-title">The author of "The Philosophy of Natural Therapeutics"</div>
</header>

<main id="main">
  
  <div id="img-div">
    <img src="http://www.enzyme-facts.com/images/Eugene_V_Debs_portrait1897.jpg" id="image" alt="Portrait Photo of Dr. Henry Lindlahr" />
    <div id="img-caption">Dr. Henry Lindlahr.</div>
  </div>
  
  <div id="tribute-info">
    <h2>Books written by Dr. Henry Lindlahr</h2>
    <ul>
      <li>The Philosophy of Natural Therapeutics ( Book 1 )</li>
      <li>The Practice of Natural Therapeutics ( Book 2 )</li>
      <li>The Lindlahr Vegetarian Cookbook ( Book 3 )</li>
      <li>Iridiagnosis and other Diagnostic Methods ( Book 4 )</li>
      <li>Nature Cure</li>
    </ul>
    <blockquote>
      <p>"Every acute disease is the result of a cleansing and healing effort of Nature."</p>
      <div>-- Dr. Henry Lindlahr</div>
    </blockquote>
    
    <h3>If you have time, you should read more about this incredible human being on his <a href="https://en.wikipedia.org/wiki/Henry_Lindlahr" target="_blank" id="tribute-link">Wikipedia entry</a>.</h3>
  </div>
  
</main>

<footer>
    <p>Tribute Page of Dr. Henry Lindlahr by AJ Brommy using HTML, CSS within CodePen for a FreeCodeCamp Project. &copy AJ Brommy 2018</p>
</footer>

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

CSS

              
                /**{
  /* Too help debug : create a red border around everything
  border:1px solid #f00;
}*/

body {
  margin: 0;
  padding:10px 10px 0 10px;
  font-family: "Times New Roman", serif;
  color: #000;
  background-color: #F5F5F5;
  text-align: center;
}

header {
  margin:0;
  padding: 35px;
  border-radius: 5px;
  background-color: #004700/*#4D4DFF*/;
  color: #F5F5F5;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

#title {
  font-size: 3em;
  font-weight: bold;
  margin: 0 0 5px 0;
}

#sub-title {
  margin:0;
  font-size: 1.5em;
}

#img-div{
  margin:0;
  padding:0;
}

#image {
  display: block;
  max-width:80%;
  height: auto;
  margin: 20px auto;
  border: 2px solid #FFFF;
  border-radius: 5px;
  box-shadow: 2px 2px 2px rgba(0,0,0,0.1);
}

#img-caption {
  margin:0;
  padding-bottom:20px;
}

#tribute-info {
  margin:0;
  background-color:#FFF;
}

#tribute-info h2 {
  margin:0;
  padding:50px 0 0 0;
  font-size:1.7em;
}

#tribute-info ul {
  list-style-position: inside;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px;
  text-align: left;
  /* border: 1px solid #f00; */
}

#tribute-info li {
  margin:20px;
  font-size:1.2em;
}

#tribute-info blockquote {
  margin: 0;
  padding: 0 10px 50px 10px;
  font-size: 1.3em;
  font-style: italic;
  border-bottom: 2px dashed #F5F5F5;
}

#tribute-info h3{
  margin:0;
  padding:50px;
  font-size:1.5em;
}

a:visited { 
    color: #004700;
}

footer p {
  margin:0;
  font-size: 0.9em;
  padding: 30px;
}
              
            
!

JS

              
                
              
            
!
999px

Console