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

              
                <header id="header">
 <nav id="nav-bar">
    <ul list-style-type: none;>
      <li><a class="nav-link" href="#overview">Overview</a></li>
      <li><a class="nav-link" href="#price">Price</a></li>
      <li><a class="nav-link" href="#colours">Colours</a></li>
      <li><a class="nav-link" href="#box">What's in the box?</a></li>
    </ul>
   <img id="header-img"     src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAMAAAAPdrEwAAAAY1BMVEUAAAD////4+Pjh4eGamprn5+fW1taRkZHw8PAjIyOIiIg7OzteXl719fXLy8vR0dG8vLxQUFA2Njaurq4sLCx6enoaGhqhoaGoqKhWVlZlZWVycnKBgYFKSkpBQUFqamoODg6kLs7dAAACyUlEQVRYhbXZ6WKDIAwAYLy1Vav1qL3Wvv9TzrlVQEIQwvK38lUjR0AWOEfeHNoj8jtzhdMXm6OovNNRy5boQ990xv7Cd0Kq80dmV790UqwyO3ilcyZE7ZX+EmnsQmt6EOXBJ52KMjv5pI+iXKKXWtKNdNORT1q6aaznWdOJKJ8NF9vRsUjnXulWkFPTxVZ0NXI5MV5tRfNUt6Zs2NLRHzx2e652oMcJmf9d6aQthwkfJ6709p9OdYq8TS0dpvGr/3n+a1arCQjrw7rUlDH8IBo6efRCFx7v8hR3GoReuAzMaS8d3ZgS8efR83hUf2XssouOoabzg09pHnVX+Me5btimRaXzXtfYFJOBTt+u8pw0lE7NABIZQkfm5mg0WjokytIkLtNAp7OKt9hLJLojyvIKL9FeZYnWDJW9cQu0dAgO4N1RBHqamGllehXoJ0nGpqfc3BwJJR0iTctHg9F3ityrskCfzYA+oMpypWmphqq0labNpoDM6cbcXh9gPbzSFwp9R+nMDOgD3B+s9INCZ/9H/+Ndg1vTlT5QaPCAwc9rxPv1RKKh/YefIQNNfJymFTfbdVGiE3N7LICMrHToXKAuAQwa/m61hfO+UDclnKb1PvZCaFoXAToJpysirRy8COOoMLdGY0y0NGkWAe5boGsyLedbLCepGZnjptkVkIqcT8QhRJ980HyH53NX8BsJSBO3BUvwXYdEE2e/JRqY9vEi4R5C3+xK2/TNgllS6UpL0+pVeUXYLvPEbAcITavgJ4wm9W35A5Ba9xD2NKmBdu+Aj8BAO6+/209tUCHouKM2H8a59pJ4y4Dlq8tSppbY8JmqQ7qx6kkK6/Mt4DBYd8hsOU+hG2mz/Ry6pm66uFRXfvAzm/7UXc533/HaKKzlfG3LJiMd1PyD12v7wHm23vpb6XVmesYfR1ZcDw34sTy93MtnqfnxJ74BXYUdVF6BqVIAAAAASUVORK5CYII=" alt="iphone se logo" />

  </nav>
  </header><br><br>

<h1>iPhone SE</h1>

<div class="row">
<div class="column">
<img id="mainimg" src="https://store.storeimages.cdn-apple.com/4982/as-images.apple.com/is/image/AppleInc/aos/published/images/i/ph/iphonese/rosegold/iphonese-rosegold-refurb-2019_AV2?wid=572&hei=572&fmt=jpeg&qlt=95&op_usm=0.5,0.5&.v=1549066492038" alt="main-img" /></div><br>

<div class="column">
<iframe 
        id="video"
        src="https://ak6.picdn.net/shutterstock/videos/16243126/preview/stock-footage-paris-france-circa-apr-difficult-unboxing-opening-of-the-new-apple-iphone-se-combining-the.webm" 
        frameborder="0"
        width="500px"
        height="400px"
        allowfullscreen>
  </iframe></div>
</div>

<h2 id="overview">Overview</h2>
<p>
  <li id="list">
    <ul> Originally released March 2016</ul>
    <ul>Unlocked, SIM-Free, Model A16621</ul>
    <ul>4-inch Retina display with IPS technology</ul>
    <ul>A9 chip with embedded M9 motion coprocessor</ul>
    <ul>Talk time up to 14 hours</ul>
    <ul>LTE and 802.11ac Wi‑Fi</ul>
    <ul>Bluetooth 4.2 wireless technology</ul>
    <ul>NFC</ul>
    <ul>12-megapixel camera</ul>
    <ul>Digital zoom up to 5x</ul>
    <ul>1080p HD video recording</ul>
    <ul>Touch ID</ul>
    <ul>Siri</ul>
    <ul>Apple Pay</ul>
<ul>3.99 ounces and 0.30 inch</ul>
</p>

<h2 id="price">Price</h2>
<p>32GB  &nbsp;&nbsp;&nbsp;  $349</p>
<p>128GB &nbsp;&nbsp;&nbsp;  $449</p>

<h2 id="colours">Colours</h2>
<p>Silver</p>
<p>Space Gray</p>
<p>Gold</p>
<p>Rose Gold</p>

<h2 id="box">What's in the Box?</h2>

<p>iPhone SE</p>
<p>EarPods with 3.5 mm Headphone Plug</p>
<p>Lightning to USB Cable</p>
<p>USB Power Adapter</p>
<p>Documentation</p>

<form id="form" action="https://www.freecodecamp.com/email-submit">
  <input
         name="email"
         id="email"
         type="email"
         placeholder="Enter your email address"
         />
  <input id="submit" type="submit" value="Get Updates!" class="btn"/>
</form>      

<footer>
 <em> <p class="footy">For more information <a  target="_blank" href="https://www.apple.com/shop/product/MP7W2LL/A/iphone-se-32gb-rose-gold-unlocked"> click here</a>.</p></em>
</footer>
              
            
!

CSS

              
                @import "https://fonts.googleapis.com/css?family=Lato:400,700";

li{
  list-style: none;
}

body{
  font-family:"Lato";
}

#nav-bar {
  overflow: hidden;
  background-color: black;
  border:  solid 1px;
  position: fixed;
  width: 1850px;
  margin: -100px;
  margin-left: -30px;
}

#nav-bar a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}


#nav-bar a:hover{
  color: black;
  background-color: white;
}

#header-img{
  position: fixed;
  top: 52px;
  left: 10px;
  background-color: black;
}
@media{
  #header-img{
    display: flex;
  }
}

body{
  text-align: center;
  height: 200px;
  margin-top: 80px;
}

h1{
  font-size: 60px;
  font-weight: bold; 
}

footer{
  background-color: black;
  color: white;
  width: 2400px;
  margin-left:-320px;
}

.footy{
   font-size: 18px;
}

#video{
  border: solid 0.5px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

h2{
  font-size: 45px;
  text-decoration: underline;
}

p{
  font-size: 25px;
}

#list{
  font-size: 25px;
}

#email{
 height: 35px;
  width: 250px;
}

#submit{
  height: 30px;
  width: 100px;
}

#submit:hover{
  color: white;
  background-color: black;
}
  .row {
  display: flex;
}

.column {
  flex: 33.33%;
  padding: 5px;
}

#video{
  margin-top: 90px;
}
              
            
!

JS

              
                
              
            
!
999px

Console