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

              
                <!DOCTYPE html>
<html>
<body>
<header id="header">
  <nav id="nav-bar">
    <img id="header-img" src="https://static.vecteezy.com/system/resources/previews/000/590/399/non_2x/coffee-cup-logo-template-vector-illustration-design.jpg" alt="logotype">
    <div class="nested">
    <a class="nav-link" href="#description-pictures">Description</a>
    <a class="nav-link" href="#video">Video</a>
    <a class="nav-link" href="#donate-bronze">Donate</a>
    </div>
  </nav>
  </header>
  <section class="whole">
  <div class="inside-whole">
    <form id="form" action="https://www.freecodecamp.com/email-submit" method="post">
      <p id="title">Handjob, i mean hand made stuff..</p>
      <label for="email">
      <input id="email" type="email" placeholder="Enter your email address" name="email" required>
      </label></br>
    <input id="submit" type="submit" href="https://www.freecodecamp.com/email-submit" value="Submit">
    </form>
  </div>
    <div id="picture-text">
  <div id="description-pictures" class="inside-whole">
    <img id="playstation" class="pictures" src="http://icons.iconarchive.com/icons/thesquid.ink/free-flat-sample/256/ps4-controller-icon.png">
    <img id="sneaker" class="pictures" src="http://icons.iconarchive.com/icons/thesquid.ink/free-flat-sample/256/nike-dunk-icon.png">
    <img id="diploma" class="pictures" src="http://icons.iconarchive.com/icons/thesquid.ink/free-flat-sample/256/diploma-icon.png">
    </div>
    
    <div id="description" class="inside-whole">
      <p for="playstation" class="text">I like to play video games. Like Dark Souls, FIFA. But now i can't because i'm spending most of my time learning HTML & CSS. At some point it looks easy, at thye other it's too hard. But hey, maybe that's the key to a better life.</p></br>
      <p for="sneaker" class="text">I love sports. Especially some fighting like Muay Thai, Boxing and etc. But now i'm too old to practice those :D I'm almost 34 :D :D :D And my bones are not strong anymore.</p></br>
      <p for="diploma" class="text">I hope that soon i will manage to get my certificatre for finishing HTML & CSS courses and after that there will be only rainbow and butterflies. It will be raining money and i will something nioce for my wife.</p>
    </div>
    </div>
      <iframe id="video" class="inside-whole" width="560" height="315" src="https://www.youtube.com/embed/nDO4nI0hGZ4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  <section class="offers" "inside-whole">
    <div id="donate-bronze">
      <h5 class="headers1">Bronze</h5>
      <h6 class="headers2">Small donation</h6>
      <p class="paragraph">Just donate a small amount of thousands of dollars. I one small piece of lots of money</p>
      <button class="button2 type1" type="select">Donate!</button>
    </div>
    <div id="donate-silver">
      <h5 class="headers1">Silver</h5>
      <h6 class="headers2">Medium donation</h6>
      <p class="paragraph">Donate all of your money and a car. But car needs to be a Ferrari. That's not my problem if you don't have one. Go and buy. I'll wait</p>
      <button class="button2 type2" type="select">Donate!</button>
    </div>
    <div id="donate-gold">
      <h5 class="headers1">Gold</h5>
      <h6 class="headers2">Large donation</h6>
      <p class="paragraph">House on a shore of Atlantic sea. With basketball court. And a inside cinema.</p>
      <button class="button2 type3" type="select">Donate!</button>
    </div>
  </section>
    <footer id="footer">
      <nav id="footer-bar">
        <a class="footer-link" href="/privacy/">Privacy</a>
        <a class="footer-link" href="/terms/">Terms</a>
        <a class="footer-link" href="/contacts/">Contacts</a>
        <p id="legal">Copyright 2020, Simonas & The Gang Development</p>
      </nav>
    </footer>
  </section>
</body>
</html>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
              
            
!

CSS

              
                #nav-bar {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: row;
  position: fixed;
  top: 0;
  width: 100%;
  background: #d3d3d3;
  height: 175px;
  align-items: center;
}
#header-img {
  width: 7%;
  border-radius: 50%;
  border-color: black;
  border-width: 5px;
  border-style: solid;
  margin: 0.5em;
  flex-shrink: 0;
}
.nested {
  display: flex;
  flex: row;
  margin-left: 65%;
  margin-top: 3%;
}
.nav-link {
  font-family: Avantgarde, TeX Gyre Adventor, URW Gothic L, sans-serif;
  text-decoration: none;
  color: black;
  font-size: 25px;
  margin: 0.5em;
  padding: 0.5em;
}
body {
  background: #d3d3d3;
  width: 100%;
  margin: 0;
  padding: 0;
}
.inside-whole {
  display: flex;
  flex-direction: column;
  /* margin: 0px 450px 0px 450px; */
  /* : 3px solid black; */
}

#form {
  margin-top: 185px;
  text-align: center;
  font-family: Avantgarde, TeX Gyre Adventor, URW Gothic L, sans-serif;
  padding: 50px 50px 150px 50px;
}
#title {
  font-size: 30px;
}
#email {
  padding: 8px;
  margin: 0 0 20px 0;
  width: 250px;
}
#submit { 
  margin: 7px;
  padding: 10px;
  background-color: #f2a51a;
  border: none;
  font-weight: bold;
}
#submit:hover {
  margin: 7px;
  padding: 10px;               
  background-color: #ea6227;
  border: none;
  font-weight: bold;
}
#picture-text {
  display: flex;
  margin: 0px 450px 0px 450px;
  padding: 0;
  flex-direction: row;
}
#playstation, #sneaker, #diploma {
  width: 100px;
  padding: 0.5em;
  display: flex;
  flex-position: column;
}
.text {
  font-family: Avantgarde, TeX Gyre Adventor, URW Gothic L, sans-serif;
  font-size: 20px;
  display: flex;
  flex-position: column;
  margin-left: 20px;
}
#video {
  margin: 0px 450px 0px 450px;
  padding: 100px 215px 100px 215px;
}
.offers {
  display: flex;
  flex-direction: row;
  font-family: Avantgarde, TeX Gyre Adventor, URW Gothic L, sans-serif;
  margin: 0px 450px 0px 450px;
  justify-content: space-evenly;
}
#donate-bronze {
  border-style: solid;
  border-width: 0.5px;
  width: 250px;
  height: 300px;
  text-align: center;
}
#donate-silver {
  border-style: solid;
  border-width: 0.5px;
  width: 250px;
  height: 300px;
  text-align: center;
}
#donate-gold {
  border-style: solid;
  border-width: 0.5px;
  width: 250px;
  height: 300px;
  text-align: center;
}
#footer {
  margin: 100px 50px 0 0;
  text-align: right;
  font-family: Avantgarde, TeX Gyre Adventor, URW Gothic L, sans-serif;
  text-decoration: none;
  color: black;
  font-size: 15px;
}
.headers1 {
  font-size: 30px;
  margin: 0px;
  background-color: #909090;
  padding: 15px 0 15px 0;
  width: 99.9%;
}
.headers2 {
  font-size: 25px;
  margin-top: 10px;
}
.paragraph {
  font-size: 18px;
  margin: -30px 10px 10px 5px;
}
.button2 {
  padding: 10px 10px 10px 10px;
  background-color: #f2a51a;
  border: none;
  font-weight: bold;
}
.button2:hover {
  padding: 10px 10px 10px 10px;
  background-color: #ea6227;
  border: none;
  font-weight: bold;
}





.type1 {
  margin-top: 47px;
}
.type2 {
  margin: 5px;
}
.type3 {
  margin: 47px;
}

@media only screen and (max-width: 768px){
  [class*="nav-link"]
    width: 50%;
  }







              
            
!

JS

              
                
              
            
!
999px

Console