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

              
                <html lang="en">
<header id="header">
      <div class="logo">
      <a style="border-bottom:none;" href="#"><img id="header-img" src="https://cdn.pixabay.com/photo/2016/08/25/07/30/red-1618916_960_720.png" alt="oracle logo">
     <h1 class="p-logo">racle</h1></a>
      </div>
    <nav id="nav-bar">
      <ul>
        <li><a class="nav-link" href="#pricing">pricing</a></li>
        <li><a class="nav-link" href=#how-it-works>how it works</a></li>
        <li><a class="nav-link" href="#features">features</a></li>
      </ul>
    </nav>
    <nav id="mobile-nav-bar">
      <ul>
        <li><a class="nav-link" href="#features">features</a></li>
        <li><a class="nav-link" href=#how-it-works>how it works</a></li>
        <li><a class="nav-link" href="#pricing">pricing</a></li>
      </ul>
    </nav>
  </header>

<div class="color"></div>

<div class="container">
<img class="lap-img" style="width:100%;" src="https://images.unsplash.com/photo-1572666341285-c8cb9790ca50?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1500&q=80" alt="image of an Oracle laptop">
  <div class="middle-text"><h4>Oracle laptops</h4></div>
  <div class="lower-middle-text">Experience only the best graphics on a superior display, backed by a system that's powered with the latest in technology.</div>
</div>

<section id="features">
  <div class="grid">
  <i class="fas fa-fire icon"></i>
  <div class="description">
    <h3>premium products</h3>
    <p>Oracle laptop has a sturdy unibody-aluminum chassis, a gorgeous display and top performance in their respective categories.</p>
    </div>
</div>
<div class="grid">
<i class="fas fa-shipping-fast icon"></i>
  <div class="description">
    <h3>Fast Shipping</h3>
    <p>We make sure you recieve your product as soon as we have finished making it. We also provide free returns if you are not satisfied.
</p>
    </div>
</div>
<div class="grid">
<i class="fas fa-battery-full icon"></i>
  <div class="description">
    <h3>Quality Assurance</h3>
    <p>For every purchase you make, we will ensure there are no damages or faults and the products are tested before they are sold.
</p>
  </div>
</div>
</section>

<div id="how-it-works" class="center">
<iframe id="video" width="560" height="315" src="https://www.youtube-nocookie.com/embed/_e7JTaPMf7Q?controls=0" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>

<section id="pricing">
  <div class="price-tags">
    <div class="price-tag-columns">
      <h4>Oracle Zen</h4>
      <p style="margin:0 0 20px 0;">499$</p>
      <p>Lorem ipsum.</p>
      <p>Lorem ipsum.</p>
      <p>Lorem ipsum.</p>
      <input class="button" type="button" value="Buy now">
    </div>
    <div class="price-tag-columns">
      <h4>Oracle Zen Pro</h4>
      <p style="margin:0 0 20px 0;">699$</p>
      <p>Lorem ipsum.</p>
      <p>Lorem ipsum.</p>
      <p>Lorem ipsum.</p>
      <input class="button" type="button" value="Buy now">
    </div>
    <div class="price-tag-columns">
      <h4>Oracle Zen Pro Max</h4>
      <p style="margin:0 0 20px 0;">899$</p>
      <p>Lorem ipsum.</p>
      <p>Lorem ipsum.</p>
      <p>Lorem ipsum.</p>
      <input class="button" type="button" value="Buy now">
    </div>
  </div>
</section>

<form id="form" action="https://www.freecodecamp.com/email-submit">
  <label for="email">Sign up and never miss an update.</label>
    <input class="text-field" type="email" id="email" name="email" placeholder="Enter your email here" required>
  <input class="button" id="submit" type="submit">
</form>

<footer>
  <p>&copy; Oracle since 2015</p>
  <div>
    <a href="#"><i class="fab fa-facebook footer-icons fb"></i></a>
    <a href="#"><i class="fab fa-instagram footer-icons insta"></i></a>
    <a href="#"><i class="fab fa-twitter footer-icons twitter"></i></a>
    <a href="#"><i class="fab fa-discord footer-icons discord"></i></a>
  </div>
</footer>
</html>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding: 50px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Dosis', sans-serif;
  font-size: 22px;
  background-color: #070808;
  color: white;
}

#header {
  position: fixed;
  height: 65px;
  z-index: 1;
  color: red;
  width: 100%;
  background-color: #070808;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

.logo {
  margin-left: 20px;
  float: left;
}

#header-img {
  margin-top: 10px;
  height: 45px;
  width: 45px;
}

ul {
  list-style-type: none;
}

li {
  margin-right: 15px;
  font-size: 23px;
  float: right;
  margin-top: -5px;
}

/*the text part of the logo*/
.p-logo {
  position: fixed;
  color: red;
  display: inline;
  margin: 0;
}

/*image of the laptop*/
.container {
  position: relative;
  text-align: center;
  color: white;
}

/*text in the laptop image*/
.middle-text {
  font-size: 30px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/*text in the laptop image*/
.lower-middle-text {
  position: absolute;
  top: 85px;
  left: 30%;
  transform: translateX(-20%);
}

/*don't touch*/
.color {
  height: 65px;
  background-color: #070808;
}

/*iframe center*/
.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

iframe {
  border: none;
  margin: 50px 0;
}

.grid {
  display: flex;
  align-items: center;
  margin: 10px;
}

.icon {
  display: flex;
  margin: 0 20px;
  justify-content: center;
  width: 20vw;
  font-size: 40px;
  color: dodgerblue;
}

#mobile-nav-bar {
  display: none;
}

@media only screen and (max-width:600px) {
  html {
    scroll-padding: 170px;
  }
  
  .icon {
    display: none;
  }
  
  .lap-img {
    height: 300px;
  }
  
  .description h3{
    display: flex;
    justify-content: center;
    width: 100%;
  }
  
  #nav-bar {
    display: none;
  }
  
  #mobile-nav-bar {
    display: block;
  }
  
  #header {
    position: fixed;
    height: 170px;
    background-color: #070808;
  }
  
  .color {
    height: 180px;
  }
  
  .p-logo {
    position: absolute;
    margin: 0 auto;
    font-size: 40px;
  }
  
  .logo {
    margin: 0 48%;
    transform: translateX(-120%);
  }
  
  #header-img {
    height: 35px;
    width: 35px;
  }
  
  iframe {
    margin: 20px;
    width: 400px;
    height: 220px;
  }
  
  ul {
    margin: 55px auto;
    width: 100%;
    background-color: #070808;
  }
  
  li {
    position: relative;
    text-align: center;
    float: none;
    display: block;
    margin: 10px 46%;
    transform: translate(-50%);
    width: 100%;
  }
  
  .middle-text {
    font-size: 25px;
    top: -15px;
    left: 55%;
  }
  
  .lower-middle-text {
    width: 85%;
    top: 60px;
    font-size: 20px;
  }
}

@media (max-width:690px) {
  .price-tags {
    flex-wrap: wrap;
  }
}

.description {
  display: flex;
  align-items: start;
  flex-direction: column;
  margin: 15px;
  padding: 15px;
}

.description > h3  {
  margin: 0;
}

li a {
  color: red;
  font-weight: bold;
  text-decoration: none;
  border-bottom: #1B1212 1px solid;
  transition: border .5s;
  background-color: #070808;
}

li a:focus, li a:hover {
  color: green;
  border-bottom: 1px solid green;
}

.price-tags {
  display: flex;
  justify-content: center;
}

.price-tag-columns {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  margin: 45px 20px;
  padding: 0 20px;
  width: 250px;
  border: 1px solid red;
  border-radius: 10px;
  box-shadow: 0 0 8px red;
  background-color: black;
  transition: .5s;
}

.price-tag-columns > h4 {
  margin-bottom: 5px;
}

.price-tag-columns > p {
  margin: 15px;
}

.button {
  background-color: black;
  border: 1px red solid;
  border-radius: 5px;
  color: white;
  margin: 15px;
  padding: 8px;
  transition: box-shadow .3s;
}

.button:hover, .button:focus {
  cursor: pointer;
  outline: none;
  box-shadow: 0 0 10px red;
}

.button:active {
  transform: translateY(2px);
}

form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #070808;
  margin-bottom: 20px;
}

/* email text-field */
.text-field {
  max-width: 300px;
  width: 100%;
  height: 30px;
  border: 1px solid red;
  border-radius: 5px;
  font-size: 15px;
  outline: none;
}

.text-field:focus {
  border: 3px solid red;
}

footer {
  text-align: center;
  background-color: black;
  padding: 60px;
  font-size: 22px;
  font-family: "open sans";
}

a {
  color: white;
}

.footer-icons {
  margin: 10px 20px;
  cursor: pointer;
  transition: all .5s;
}

footer .fb:hover {
  color: #4267B2;
}

footer .insta:hover {
  background-image: -webkit-linear-gradient(to bottom left, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F77737, #FFDC80);
  background-image: linear-gradient(to bottom left, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F77737, #FFDC80);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

footer .twitter:hover {
  color: #1DA1F2;
}

footer .discord:hover {
  color: #7289DA;
}

label {
  margin: 25px 0;
}
              
            
!

JS

              
                
              
            
!
999px

Console