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

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:

Screenshot

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                <!DOCTYPE html>
<html>
  <head>
  <title>Responsive Web Design Projects - Build a Product Landing Page</title>
  </head>
  <body>
      <header id="header">
        <div id="logo"><img id="header-img" src="https://upload.wikimedia.org/wikipedia/commons/5/52/Free_logo.svg" alt"free logo from WikipediaCommons">Kombajnowo</div>
        <nav id="nav-bar">
          <ul>
            <li><a class="nav-link" href="#features">Właściwości</a></li>
            <li><a class="nav-link" href="#how-it-works">Jak to działa?</a></li>
            <li><a class="nav-link" href="#pricing">Cena</a></li>
            <li><a class="nav-link" href="#contact">Kontakt</a></li>
         </ul>
        </nav>
      </header>
    <div class="container">
      <section id="features">Właściwości</section>
      <p>Do podstawowych zalet kombajnu należą:</p>
      <ul>
        <li>zbiór zboża mającego wilgotność ponad 20%, co jest prawie niemożliwe przy użyciu kombajnu tradycyjnego,</li>
        <li>zbiór z minimalną stratą zboża wyległego i poplątanego,</li>
        <li>zbiór z pól zachwaszczonych niskimi chwastami,</li>
        <li>możliwość stosowania w technologiach uprawy roślin, gdzie resztki pożniwne zostają na polu,</li>
        <li>zatrzymywanie śniegu na polu przez pozostające części roślin w terenach suchych,</li>
        <li>zbieranie kur po wioskach</li>
      </ul>
      <section id="how-it-works">Jak to działa?</section>
      <p>Nie mogliśmy znaleźć odpowiedniego filmu, ale wyobraźcie sobie zbieranie kur po wioskach pod tę nutę.</p>
      <iframe width="420" height="315" src="https://www.youtube.com/embed/tgbNymZ7vqY"></iframe>
      <section id="pricing">Cena</section>
      <p>Cena nadaje się do negocjacji. Na pewno nie będzie przekraczać 10 000% ceny standardowego kombajnu, a w wypadku wakacji dla kur - wakacji dla ludzi w danym regionie, na podstawie średniej ceny wiodących trzech biur podróży. A Ty ile zapłacisz, żeby Twoja kurka w końcu wygrzała swoje kości? Ile warte są Twoje jajeczka?</p>
      <div class="flex-container">
        <div>Warte są każdej ceny. Kurki oczywiście</div>
        <div>Pisiont groszy starczy?</div>
        <div>50 zł - znaj łaskę pana.</div>
      </div>
      <section id="contact">
        <form id="form" >
          <label for="email"></label>
          <input name="email" id="email" type="email" placeholder="Wpisz adres e-mail" required>
          <input id="submit" type="submit" value="Wyślij adres" action="https://www.freecodecamp.com/email-submit">
        </form>
        
      </section>
    </div>
        
    </body>
</html>
              
            
!

CSS

              
                  body {
    background-color: beige;
  }
@media only screen and (max-width: 600px) {
  #nav-bar li
  {
    background-color: silver;
  }
}

#header-img {
  width: 50px;
  height: 50px;
}
#nav-bar {
  margin: 0;
  position: absolute;
  top: 0;
  text-align: right;
  right: 0;
}

#nav-bar ul {
  list-style-type: none;
}

#nav-bar li {
  display: inline-block;
  padding-right: 20px;  
}
.flex-container {
  display: flex;
}

.flex-container div {
  padding: 50px;
}
              
            
!

JS

              
                
              
            
!
999px
What' a functional programmer's favorite animal? A lamb, duh!

Console