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

              
                <div id="page">
  <header id="header">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
    <div class="logo">
<img id="header-img" src="https://beefjerkystock.eu/wp-content/uploads/2015/01/kuivaliha_com-yllatysboksi.jpg" alt="Surprise box"/>
</div>

    <nav id="nav-bar">
<ul>
 <li><a class="nav-link" href="#Pricing">Offer</a></li>
 <li><a class="nav-link" href="#Features">Features</a></li>
<li><a class="nav-link" href="#Offer">Products</a></li>
      </ul>
</nav>
    </header>

<section id="hero">
  <h2>Gifts Gifts Gifts!</h2>
    <form id="form"
action="https://www.freecodecamp.com/email-submit">
<input name="email" id="email" type="email"
placeholder="Enter your email address here" required/>
      <input id="submit" type="submit" value="JOIN US" class="btn"></input>

</form>
</section>

<div class="container">
<section id="Pricing">
  <div id="Classic">
 <div class="Stuff">Classic BOX
</div>
    <h2>5€</h2>
<ol>
  <li>1 USB port (3gb)</li>
  <li>1 Fidget spinner</li>
  <li>3 paper ducks</li>
  <li>1 box of Skittles</li>
    </ol>
    <button class="btn">BUY</button>
  </div>

  <div id="Advanced">
    <div class="Stuff">Advanced BOX
</div>
    <h2>10€</h2>
    <ol>
      <li>1 USB port (5gb)</li>
      <li>1 YoYo</li>
      <li>1 Monopoly game</li>
      <li>1 Lindt chocholate</li>
     </ol>
    <button class="btn">BUY</button>
</div>
  <div id="Ultra">
    <div class="Stuff">Diamond BOX
</div>
    <h2>15€</h2>
    <ol>
      <li>1 USB port (10gb)</li>
      <li>1 plastic Crossbow</li>
      <li>1 MP3 player</li>
      <li>1 BIG Milka cholate</li>
</ol>
    <button class="btn">BUY</button>
</div>
</section>
<br><br>

<section id="features">
<div class="grid">
  <div class="icon">
    <i class="far fa-grin-hearts"></i>
</div>

  <div class="description">
    <h2>Fast & smart choice</h2>
<p>If you are out of ides what to get them for birthday/christmass, or any special occasion, then we are your finest solution! Best birthday present children can ask for.</p>  
</div>
</div>
  <div class="grid">
    <div class="icon">
<i class="fas fa-gift"></i>
</div>
    <div class="description">
      <h2>Creative wrapping</h2>
      <p>Dont worry about wrapping. Our employees love to do their work, and they make sure, presents look as great as possible.</p>
</div>
</div>
  <div class="grid">
    <div class="icon">
<i class="fas fa-shipping-fast"></i>
</div>
    <div class="description">
      <h2>Fast delivery</h2>
      <p>Waiting time is around 2-3days. We make sure, you'll get your presents right on time! If you are not satisfied with our product, we give your money back! </p>
</div>
</div>
  </section>
  <section id="Products">
  <iframe id="video" height="315"
  src="https://www.youtube.com/embed/OkK5y3hp9h0?autoplay=0"
          frameboarder="0" allowfullscreen></iframe></section>
  
<footer>
  <ul>
    <li><a href="#">Privacy</a></li>
    <li><a href="#">Terms</a></li>
    <li><a href="#">Contact</a></li>
  </ul>
  <span>Copyright 2019, Creative Gifts</span>
  </footer>

</div>
 </div>

              
            
!

CSS

              
                #page {
position: relative;}

.logo {
margin-right: auto;}

li {
list-style: none;


}

a {
text-decoration: none;
color: #666666;




}
  

a:hover:not(.active) {
background-color: silver; 
}

.container {
max-width: 1000px;
width: 100%;
margin: 0 auto;
}

.btn {
padding: 5px;
font-size: 1em;
font-weight: 700;
text-transform: uppercase;
border-radius: 5px;
cursor: pointer;
}

.grid {
display: flex;
}

header {
  position: sticky;
  top: 0;
  min-height: 75px;
  padding: 0px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: white;
  @media (max-width: 600px;) {
  flex-wrap: wrap;
  right: 10;
  
  
  
}
}

@media (max-width: 650px;) {
margin-top: 15px;
width: 100%;
position: relative;
}
  
img {
width: 100%;
height: 100%;
max-width: 100px;
display: flex;
justify-content: center;
align-items: center;
margin-left: 20px;
  @media (max-width: 650px;) {
margin: 0 auto;
}
}

ul {
width: 20vw;
display: flex;
lex-direction: row;
justify-content: space-around;
}

ol {
margin: 15px 0 
}

li {
  padding: 5px 0;
}

#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 200px;
  margin-top: 50px;
}

h2 {
word-wrap: break-word;
margin-bottom: 20px;
margin-top: 15px;
}

input[type="email"] {
max-width: 275px;
width: 100%;
padding: 5px;
}

input[type="submit"] {
 max-width: 150px;
 width: 100%;
 height: 30px;
 margin: 15px 0;
 }

.description {
 display: flex;
  flex-direction: column;
  justify-content: center;
  height:125px;
  width:80vw;
  padding: 5px;
}


#Products {
margin-top: 50px;
display: flex;
justify-content: center;

  iframe {
max-width: 560px;
width: 100%;
  }
}

#Pricing {
margin-top: 60px;
display: flex;
flex-direction: row;
justify-content: center;
}

#Classic, #Advanced, #Ultra {
  
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
width: calc(100% / 3);
margin: 10px;
border: 1px solid black;
}


.Stuff {
  background-color: silver;
  color: black;
  padding: 15px 0;
  width: 100%;
  text-transform: uppercase;
  font-weight: 700;
  color: #00ff00;
}

button {
  border: 0;
  margin: 15px 0;
}

button:hover {
background-color: yellow;
}

footer {
margin-top: 30px;
background-color: #e6e6e6;
padding: 10px;


}

  span {
margin-top 5px;
display: flex;
justify-content: flex-end;
font-size: 0.9em


}










              
            
!

JS

              
                
              
            
!
999px

Console