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

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

<body>
  <main role="main" id="main">

    <!--// title -->
  		<h1 id="title">Edith Wharton</h1>
    
    <!--// date -->
      <h2>1862-1937</h2>
    
    <!--// my digital sketch -->
  	<figure id="img-div">
   	  <img id="image"
  src="http://i1246.photobucket.com/albums/gg610/RebekahBMC/Wharton%20Elbows.jpg" alt="Silhouette of female head in profile containing these words: her brain, he said, was all elbows"/> 
   	  <figcaption id="img-caption">
   	This <i>digital paper-cut</i> illustration is based on a description in <a href="https://www.goodreads.com/review/show/2404381698" title="My illustration and review on Goodreads"><i>The Greater Inclination</i></a>
   	  </figcaption>
   	</figure>
    
 <!--// tribute information -->
   	<section id="tribute-info">
   	  <h3 id="headline">| An Incomplete Bibliography |</h3>
   	  <p>all titles link to ebooks in the public domain</p>
    
    <!--// bibliography list -->
   	  <ul>
   	    <li> <b> 1899</b> <a href="https://www.gutenberg.org/ebooks/9190" title="The Greater Inclination ebook on Project Gutenberg"><i>The Greater Inclination</i></a>
   	    <li> <b> 1900</b> <a href="https://www.gutenberg.org/ebooks/267" title="The Touchstone ebook on Project Gutenberg"><i>The Touchstone</i></a>
   	    <li> <b> 1901</b> <a href="https://www.gutenberg.org/ebooks/4327" title="The Valley of Decision ebook on Project Gutenberg"><i>The Valley of Decision</i></a>
   	    <li> <b> 1903</b> <a href="https://www.gutenberg.org/ebooks/7517" title="Sanctuary ebook on Project Gutenberg"><i>Sanctuary</i></a>
   	    <li> <b> 1905</b> <a href="https://www.gutenberg.org/ebooks/284" title="The House of Mirth ebook on Project Gutenberg"><i>The House of Mirth</i></a> 
   	    <li> <b> 1911</b> <a href="https://www.gutenberg.org/ebooks/4517" title="Ethan Frome ebook on Project Gutenberg"><i>Ethan Frome</i> </li></a>
   	    <li> <b> 1912</b> <a href="https://www.gutenberg.org/ebooks/283" title="The Reef ebook on Project Gutenberg"><i>The Reef</i></a>
   	    <li> <b> 1913</b> <a href="https://www.gutenberg.org/ebooks/11052" title="Custom of the Country ebook on Project Gutenberg"><i>The Custom of the Country</i></a>
   	    <li> <b> 1917</b> <a href="https://www.gutenberg.org/ebooks/166" title="Summer ebook on Project Gutenberg"><i>Summer</i></a>
   	    <li> <b> 1920 </b> <a href="https://www.gutenberg.org/ebooks/541" title="The Age of Innocence ebook on Project Gutenberg"><i>The Age of Innocence</i></a> 
   	  </ul>
    
    <!--// quote and signature -->
   	<blockquote cite="https://www.goodreads.com/author/quotes/16.Edith_Wharton?page=3"> 
   	 <p>"She had been bored [by him]all afternoon but she must follow up her success, must submit to more boredom, must be ready with fresh compliances and adaptibilities, all on the bare chance that he might ultimately decide to do her the honor of <em>boring her for life</em>." </p>	 
     <cite><a title="Edith Wharton
 [Public domain], via Wikimedia Commons" href="https://commons.wikimedia.org/wiki/File:Edith_Wharton_signature.svg"><img alt="Edith Wharton signature" src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/e1/Edith_Wharton_signature.svg/512px-Edith_Wharton_signature.svg.png"></a></cite>
   	</blockquote>
   	<p> Read more about Edith Wharton's life and writings on <a href="https://www.edithwharton.org/discover/edith-wharton/"  id="tribute-link" title="Edith Wharton Estate Website" target="_blank">The Mount</a>, a cultural center celebrating her legacy. </p>
</section>
</main>

<!--//footer about project -->
<hr>
<footer>
Rebekah Burchfield M. | My first "Responsive Web Design" project after completing the related coursework on <a href="https://www.freecodecamp.org/" title="Free Code Camp website">Free Code Camp
</footer>
</body>


              
            
!

CSS

              
                /* Color Palette:
#000000 is Black
#ffffff is White
#BCA136 is Dark Yellow
#D3B53D is Moderate Yellow
#EFD469 is Soft Yellow
---------------*/


/*--Global styles--*/
html {
	font-size: 12px;
}

body {
	font-family: "Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace;
	font-size: 1.6rem;
	line-height: 1.3;
	text-align: center;
	color: #000000;
	margin: 0;
}
h1 {
	font-size: 5rem;
	margin-bottom: 0;
	color: #131313;
  }

@media (max-width: 460px) {
	h1 {
	font-size: 3rem;
	line-height: 1.2;
}
  
}

h2 {
	font-size: 2rem;
  color: #BCA136;
}

p {
  font-size: 1.5rem;
  padding-top: 10px;
}

a {
	color: #BCA136;
	text-decoration: underline;
}

a:visited {
	color: #D3B53D;
}
a:hover {
  color: #000000;
  text-decoration: overline underline;
  background: #EFD469;
}


/* main style */

#main {
	margin: 30px 8px;
  padding: 15px;
	border-radius: 4px;
	background: #ffffff;
}

@media (max-width: 460px) {
	#main {
	margin: 0;
}
}

/* image style */
img {
	max-width: 60%;
	display: block;
	height: auto;
	margin: 0 auto;
}

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

#img-caption {
	margin: 7px 0 4px 0;
}

@media (max-width: 460px){
	#img-caption {
	font-size: 1rem;
}
}

/* Tribute info: bibliography */
#tribute-info
ul {
  list-style-type: circle;
  list-style-position: outside;
  max-width: 550px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

li {
  margin: 14px 0;
  text-align: left;
}

/*  I tried out many blockquote styles from different sources, but I settled on this one because I thoroughly understood it and theoretically could have come up with it myself. I didn't come up with it though - it's from "https://css-tricks.com/examples/Blockquotes/" I don't love how long the line is in the large screen version but I like how it looks on a small screen.*/

blockquote{
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 50px;
  padding-left: 15px;
  border-left: 3px solid #BCA136;
  text-align: center;
} 

#headline {
	margin: 10px 0;
  padding-top: 20px;
}

/* footer, project information */
hr {
  border-color: #BCA136;
}

footer {
  font-size: 1rem;
  padding-top: 10px;
  padding-bottom: 10px;
}
              
            
!

JS

              
                
              
            
!
999px

Console