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 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

              
                </div></div> <html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Help the tiny horses</title>
    <!-- <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script> -->
    <link href="https://fonts.googleapis.com/css?family=Dancing+Script|PT+Sans+Narrow" rel="stylesheet">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
  </head>
  <body id="body">
    <div id="main-div">
      
      <header id="header">
        <div id="logo-div">
          <img id="header-img" src="https://78.media.tumblr.com/6e547b9d0ab8ba6bdb62788270b3977f/tumblr_pbqqcdhEDn1xzzgndo1_500.png" alt="Li'l Sebastians Portrait">
          <h1>Li'l Sebastian Charity</h1>
        </div>
        <nav id="nav-bar">
          <ul id="navigation">
            <li><a class="nav-link" href="#main-div">Main</a></li>
            <li><a class="nav-link" href="#video-div">Videos</a></li>
            <li><a class="nav-link" href="#donation">Donate</a></li>
          </ul>
        </nav>
      </header>
      
      <div id="sign-up">
        <h2>Sign up today and help out li'l horses in need!</h2>
        <form id="form" action="https://www.freecodecamp.com/email-submit">
          <div>
            <input type="email" name="email" id="email" placeholder="Enter your Email" required>
          </div>
          <div id="submit-div">
            <input id="submit" type="submit" form="form" value="Submit">
          </div>
        </form>
      </div>
      
      <div id="video-div">
        <div class="video">
          <iframe width="560" height="315" id="video" src="https://www.youtube.com/embed/qcBeQF6zB9I" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
          <p>Watch dwarf pony "Pumpkin" run for the first time, thanks to her leg braces!</p>
        </div>
        <div class="video">
          <iframe width="560" height="315" src="https://www.youtube.com/embed/oK6kTjqL7do" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
          <p>Watch therapy horses visit hospitals, hospice programs, police stations and fire stations!</p>
        </div>
        <div class="video">
          <iframe width="560" height="315" src="https://www.youtube.com/embed/tdjFox4KzKU" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
          <p>Watch miniature horse "Cali" assist a blind woman in her daily life!</p>
        </div>
      </div>
      
      <div id="donation">
        <div id="donation-head">
          <p>With your donations you can help <span style="font-family: 'Dancing Script', cursive;">Li'l Sebastian Charity</span> to continue their awesome work:</p>
        </div>
        <div id="donation-boxes">
          <div class="donation-box">
            5$ per month
            <input class="donate-btn" type="submit" form="donate" value="Submit">
          </div>
          <div class="donation-box">
            10$ per month
            <input class="donate-btn" type="submit" form="donate" value="Submit">
          </div>
        </div>
      </div>
    
      <footer id="footer">
      <div>
        <p>Li'l Sebastian is a fictional character appearing in the NBC comedy series "Parks and Recreation".<br>
        If you want to learn more about the show and Li'l Sebastian, you can check out the fan-made <a  id="tribute-link" target="_blank" href="http://parksandrecreation.wikia.com">Wiki Page</a>, or consider watching the show, which is available over <a target="_blank" href="https://www.netflix.com/title/70143842">Netflix</a> and <a target="_blank" href="https://www.amazon.de/Parks-and-Recreation-Staffel-1/dp/B012YACTKW">Amazon</a>.</p>
      </div>
    </footer>
    
    </div>
  </body>
</html>
              
            
!

CSS

              
                /* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/* RESET END */

/* =====Custom Styles===== */
#body {
  background-color: #dbdbdb;
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: calc(12px + (22 - 12) * ((100vw - 300px) / (1600 - 300)));
  min-width: 390px;
}
#main-div {
  width: 100%;
}

/* =====Typography===== */
h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 35px;
  margin: 22px 0 22px 1px;
}
h2 {
  font-size: calc(25px + (40 - 25) * ((100vw - 300px) / (1600 - 300)));
  text-align: center;
}
span {
  font-size: calc(15px + (25 - 15) * ((100vw - 300px) / (1600 - 300)));
  margin: 0 3px;
}

/* =====Header===== */
#header {
  background-color: white;
  height: 80px;
  width: 100%;
  min-width: 450px;
  border-top: 20px solid #dbdbdb;
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  z-index: 1;
}
#logo-div {
  display: flex;
  margin:0 30px;
}
#header-img {
  width: 65px;
  height: 65px;
  margin: 7px 7px 0 0;
}
#navigation {
  margin: 30px 20px;
}
#navigation li {
  display: inline;
  margin: 0 15px;
}

/* =====Sign-Up===== */
#sign-up {
  margin-top: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#form {
  width: 100%;
  margin: 50px 0;
}
#form div {
  width: 100%;
  margin: 25px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
#email {
  width: 20%;
  min-width: 170px;
  margin-left: 5px;
  padding: 5px;
  border-radius: 3px;
  border: 1px solid #919191;
}
#submit-div {
  display: flex;
  justify-content: center;
}

/* =====Video Div===== */
#video-div {
  width: calc(100% - 80px);
  margin: 20px;
  padding: 40px 20px 75px 20px;
  background-color: white;
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
}
.video {
  position: relative;
  width: 29.5%;
	padding-bottom: 14.4%;
	padding-top: 25px;
	height: 0;
  margin: 20px;
}
.video iframe {
  position: absolute;
	top: 0;
	left: 0;
  width: 100%;
  height: 100%;
}
.video p {
  margin: 5px;
  padding-top: 49%;
}

/* =====Donation Div===== */
#donation {
  width: 60%;
  margin: 70px auto;
  padding: 20px;
  background-color: white;
  border-radius: 5px;
}
#donation-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  text-align: center;
  margin-bottom: 50px;
}
#donation-boxes {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}
.donation-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 15%;
  border-radius: 3px;
  border: 1px solid #919191;
  padding: 30px;
  margin: 0 30px;
}
/* =====Buttons===== */
#submit, .donate-btn {
  width: 90px;
  padding: 10px;
  border-radius: 3px;
  border: 1px solid #919191;
  background-color: #726337;
  color: white;
}
.donate-btn {
  margin-top: 15px;
  width: 100%;
}
#submit:hover, .donate-btn:hover {
  background-color: #9b864d;
}

/* =====Footer===== */
#footer {
  width: calc(100% - 80px);
  margin: 20px;
  padding: 20px;
  background-color: white;
  border-radius: 5px;
}
#footer p {
  font-size: calc(11px + (18 - 11) * ((100vw - 300px) / (1600 - 300)));
}
a {
  color: #726337;
  text-decoration: none;
}
a:hover {
    color: #9b864d;
}

/* =====Media Queries===== */
@media (max-width: 640px) {
  #header {
    height: 95px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  #logo-div {
    margin-top: 8px;
  }
  #navigation {
  margin: -5px 0 15px 0;
}
}
@media (max-width: 820px) {
  #video-div {
    flex-direction: column;
    align-items: center;
    padding-bottom: 30px;
  }
  .video {
    width: 93%;
    padding-bottom: 39%;
    margin-bottom: 30px;
  }
  .video p {
    padding-top: 42.5%;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console