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

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

              
                <meta name="viewport" content="width=device-width, initial-scale=1.0">
<div id="main">
  <header id="header">
    <div class="logo">
      <img id="header-img" src="https://pbs.twimg.com/profile_images/522743175388340224/9-LyHY9i_400x400.jpeg" width="80px" height="80px" alt="amzuri logo" />
    </div>

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

  <div class="communication"></div>
  <section id="comm">
    <h2><i>Want to receive more communication regarding our new and upcoming releases?</h2>
    <form id="form" action="">
      <input name="email" id="email" type="email" placeholder="Enter your email address" required/></i></h2>

    <input id="submit" type="submit" value="Send it now!" class="button" />
    </form>
  </section>

  <div class="main-body">
    <section id="products">
      <div class="threecolumns">
        <div class="phoneimage"><i class="x1" </div></i>

          <div class="description">
            <h2>Amzuri Huawei 10</h2>
            <p>It might be our smallest, but definitely not our weakest</p>
          </div>
        </div>
        <div class="threecolumns">
          <div class="phoneimage">

            <i class="x1plus" </div></i>
            <div class="description">
              <h2>Amzuri Huawei 10 Plus</h2>
              <p>A bigger and improved version of our 10</p>
            </div>
          </div>

          <div class="threecolumns2">
            <div class="phoneimage"><i class="x2" </div></i>

              <div class="description">
                <h2>Amzuri Huawei 10X</h2>
                <p>Our prize winning model, with unimaginable features</p>
              </div>
            </div>
          </div>
    </section>

    <section id="features">
      <div class="threecolumns-two">
        <div class="features-tw">
          <h2>Amzuri Huawei 10</h2>
        </div>
        <img id="imagex1" src="https://www.bluproducts.com/android-phones/images/vivo-go.png" alt="image of Amzuri Huawei 10" width="280px" height="280px" />
        <p>*The 10 boasts with a 4.7 inch IPS LCD screen.
          <br> *It has a resolution of 750 x 1334 pixels, 16:9 ratio and ~326 ppi density.
          <br> *The body dimensions are 138.1 x 67 x 6.9mm and it only weighs 115g.
          <br> *It also comes with a 8MP camera and 64GB built in storage.</p>
      </div>

      <div class="threecolumns-two">
        <div class="features-tw">
          <h2>Amzuri Huawei 10 Plus</h2>
        </div>
        <img id="imagex1plus" src="https://www.bluproducts.com/android-phones/images/vivo-go.png" alt="image of Amzuri Huawei 10 Plus" width="280px" height="280px" />
        <p>*The 10 Plus kicks it up a notch with a 5.5 inch IPS LCD screen.
          <br> *It has a resolution of 1080 x 1920 pixels, 16:9 ratio and ~401 ppi density.
          <br> *The body dimensions are 158.2 x 77.9 x 7.3 mm and only weighs 150g. It also comes with a 16MP camera and 128GB built in storage.</p>
      </div>

      <div class="threecolumns-two">
        <div class="features-tw">
          <h2>Amzuri Huawei 10X</h2>
        </div>
        <img id="imagex2" src="https://www.bluproducts.com/android-phones/images/vivo-go.png" alt="image of Amzuri Huawei 10X" width="280px" height="280px" />
        <p>*The 10X kicks it up a notch with a 5.5 inch IPS LCD screen.
          <br> *It has a resolution of 1080 x 1920 pixels, 16:9 ratio and ~401 ppi density.
          <br> *The body dimensions are 158.4 x 78.1 x 7.5 mm and only weighs 186g. It also comes with a 48MP camera and 256GB built in storage.
          <br> *It also has a fingerprint sensor at the back and has built in Qi wireless charging.</p>
      </div>
    </section>

    <section id="pricing">
      <div class="product-pricing" id="amzurix1">
        <div class="product-heading">Amzuri X1</div>
        <h2>R5999</h2>
        <button class="button">Buy Now!</button>
      </div>

      <div class="product-pricing" id="amzurix1-plus">
        <div class="product-heading">Amzuri X1 Plus</div>
        <h2>R7999</h2>
        <button class="button">Buy Now!</button>
      </div>

      <div class="product-pricing" id="amzuri10x">
        <div class="product-heading">Amzuri X2</div>
        <h2>R9999</h2>
        <button class="button">Buy Now!</button>
      </div>
    </section>

    <section id="product-video">
      <iframe id="video" width="560" height="315" src="https://www.youtube-nocookie.com/embed/eZVRTQe0yrk?autoplay=1&mute=1&enablejsapi=1" allowfullscreen>
      </iframe>
    </section>

    <section id="contact-details">
      <footer>
        <ul>
          <li><a href="mailto:moolmanruan@icloud.com">Contact</a></li>
          <li><a href="#">Terms</a></li>
          <li><a href="#">Privacy</a></li>
        </ul>
        <span>Copyright 2019, Amazuri</span>
        </>
      </footer>
      </div>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css?family=DM+Sans&display=swap");
body {
  animation: 10000ms ease-in-out infinite color-change;
}
@keyframes color-change {
  0% {
    background-color: teal;
  }
  20% {
    background-color: gold;
  }
  40% {
    background-color: indianred;
  }
  60% {
    background-color: violet;
  }
  80% {
    background-color: #d0c2e1;
  }
  100% {
    background-color: teal;
  }
}
#main {
  position: relative;
  font-family: "DM Sans", sans-serif;
}
nav > ul {
  width: 35vw;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin-left: 800px;
}
.logo > img {
  max-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-left: 10px;
}
header {
  position: fixed;
  top: 0;
  min-height: 55px;
  margin-left: -9px;
  padding: 0px 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: linear-gradient(35deg, grey, black, rgb(204, 204, 255));
}
header a {
  color: #d0c2e1;
}
footer a {
  color: gold;
}
.communication {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}
#comm {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100px;
  margin-top: 100px;
}

#communication > h2 {
  margin-bottom: 20px;
  word-wrap: break-word;
}

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

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

#comm input[type="submit"]:hover {
  background-color: rgb(204, 204, 255);
  transition: background-color 1s;
  
}
li {
  list-style: none;
  font-family: "DM Sans", sans-serif;
}
a:link {
  text-decoration: none;
}
.threecolumns {
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-family: "DM Sans", sans-serif;
}
#features {
  display: flex;
  flex-direction: row;
  justify-content: center;
  max-width: 100%;
  color: black;
  padding: 15px 0;
  width: 100%;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
}

.features-two {
  display: flex;
  padding: 6px;
  font-family: "DM Sans", sans-serif;
}
.threecolumns-two {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: calc(100% / 1);
  margin: 10px;
  border-radius: 3px;
  font-family: "DM Sans", sans-serif;
  text-align: center;
  border-style: ridge;
  border-width: 7px;
  border-color: coral;
}
.phoneimage {
  display: flex;
  padding: 1px;
  font-family: "DM Sans", sans-serif;
}
.description {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: calc(100% / 1.05);
  margin: 10px;
  margin-top: 21px;
  border: 5px solid #000;
  border-radius: 7px;
  font-family: "DM Sans", sans-serif;
}
#pricing {
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-family: "DM Sans", sans-serif;
}
.product-pricing {
  display: flex;
  flex-direction: row;
  justify-content: center;
  max-width: 100%;
  color: black;
  padding: 15px 5px;
  width: 100%;
  text-transform: uppercase;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
}
footer {
  margin-top: 30px;
  padding: 20px;
}
footer > ul {
  display: flex;
  justify-content: flex-end;
}
footer > ul > li {
  padding: 0px 0px 1px 8px;
}
#contact-details {
  color: red;
}
footer > span {
  margin-top: 5px;
  display: flex;
  justify-content: flex-end;
  font-size: 0.9em;
  color: #444;
}
button {
  border-radius: 8px;
  background: linear-gradient(69deg, purple, pink, rgb(204, 204, 255));
}
#product-video {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}
p {
  padding-right: 5px;
  padding-left: 6px;
}
#product-video > iframe {
  max-width: 560px;
  width: 100%;
  border-style: ridge;
  border-width: 7px;
  border-color: coral;
}
@media (max-width: 4000px) {
  nav > ul {
    width: 45vw;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-left: 1500px;
  }
  nav {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 50px;
  }
}
@media (max-width: 1981px) {
  nav > ul {
    width: 45vw;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-left: 800px;
  }
  nav {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 50px;
  }
}
@media (max-width: 1674px) {
  nav > ul {
    width: 50vw;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-left: 950px;
  }
  nav {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 50px;
  }
  nav li {
    padding-bottom: 5px;
  }
  #pricing {
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-family: "DM Sans", sans-serif;
  }
  .product-pricing {
    display: flex;
    flex-direction: row;
    justify-content: center;
    max-width: 100%;
    color: black;
    padding: 15px 0;
    width: 100%;
    text-transform: uppercase;
    font-weight: 700;
    font-family: "DM Sans", sans-serif;
  }
}
@media (max-width: 2561px) {
  nav > ul {
    width: 45vw;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-left: 1200px;
  }
  nav {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 50px;
  }
  nav li {
    padding-bottom: 5px;
  }
  #features {
  }
}
@media (max-width: 2775px) {
  nav > ul {
    width: 45vw;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-left: 800px;
  }
  nav {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 50px;
  }
  nav li {
    padding-bottom: 5px;
  }
  #features {
  }
}
@media (max-width: 1476px) {
  nav > ul {
    width: 45vw;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-left: 550px;
  }
  nav {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 50px;
  }
  nav li {
    padding-bottom: 5px;
  }
  #features {
  }
}
@media (max-width: 1392px) {
  nav > ul {
    width: 45vw;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-left: 500px;
  }
  nav {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 50px;
  }
  nav li {
    padding-bottom: 5px;
  }
  #features {
  }
}
@media (max-width: 1200px) {
  nav > ul {
    width: 45vw;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-left: 390px;
  }
  nav {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 50px;
  }
  nav li {
    padding-bottom: 5px;
  }
}
@media (max-width: 1024px) {
  nav > ul {
    width: 45vw;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-left: 330px;
  }
  nav {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 50px;
  }
  nav li {
    padding-bottom: 5px;
  }
}
@media (max-width: 932px) {
  #comm {
    margin-top: 130px;
    padding-bottom: 16px;
  }
  nav > ul {
    width: 45vw;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-left: 280px;
  }
  nav {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 50px;
  }
  nav li {
    padding-bottom: 5px;
  }
}

@media (max-width: 800px) {
  .threecolumns {
    flex-direction: column;
    text-align: centre;
    align-items: centre;
  }
  .phoneimage {
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 10px;
    text-align: centre;
    align-items: centre;
  }
}
@media (max-width: 800px) {
  #features {
    flex-direction: column;
  }
  .features-two {
    max-width: 200px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 10px;
    text-align: centre;
    align-items: centre;
  }
  .threecolumns-two {
    width: calc(100% / 1.05);
    text-align: centre;
    align-items: centre;
  }
  #pricing {
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-family: "DM Sans", sans-serif;
  }
  .product-pricing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    color: black;
    padding: 15px 0;
    text-transform: uppercase;
    font-weight: 700;
    font-family: "DM Sans", sans-serif;
  }
}
@media (max-width: 900px) {
  #features {
    flex-direction: column;
  }
  .features-two {
    max-width: 200px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 10px;
  }
  .threecolumns-two {
    width: calc(100% / 1.05);
    margin: px;
  }
  nav > ul {
    width: 45vw;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-left: 250px;
  }
  @media (max-width: 650px) {
    .logo > img {
      margin: 0 auto;
    }
  }

  nav {
    font-weight: 400;
  }
   
  @media (max-width: 650px) {
    .threecolumns-two {
    width: calc(100% / 1.055);
  }
    nav > ul {
      width: 45vw;
      display: flex;
      flex-direction: row;
      justify-content: space-around;
      margin-left: 130px;
    }
    nav {
      margin-top: 10px;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 0 50px;
    }
    nav li {
      padding-bottom: 5px;
    }
  }

  @media (max-width: 650px) {
    #comm {
      margin-top: 130px;
    }
    @media (max-width: 575px) {
      .threecolumns-two {
    width: calc(100% / 1.07);
  }
      nav > ul {
        width: 45vw;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        margin-left: 65px;
      }
      nav {
        margin-top: 10px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 50px;
      }
      #comm {
        margin-top: 130px;
        padding-bottom: 20px;
      }
    }
    @media (max-width: 480px) {
      .threecolumns-two {
    width: calc(100% / 1.08);
  }
      nav > ul {
        width: 45vw;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        margin-left: 15px;
      }
      nav {
        margin-top: 10px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 5px 50px;
      }
      nav li {
        padding-bottom: 5px;
        padding-left: 5px;
      }
    }
    @media (max-width: 381px) {
       .threecolumns-two {
    width: calc(100% / 1.1);
  }
      nav > ul {
        width: 45vw;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        margin-left: 1px;
      }
      nav {
        margin-top: 10px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 5px 50px;
      }
      nav li {
        padding-bottom: 5px;
        padding-left: 5px;
      }
      #pricing {
        display: flex;
        flex-direction: column;
        justify-content: center;
        font-family: "DM Sans", sans-serif;
        text-align: center;
      }
      .product-pricing {
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: 100%;
        color: black;
        padding: 15px 0;
        text-transform: uppercase;
        font-weight: 700;
        font-family: "DM Sans", sans-serif;
      }
    }
  }

  @media (max-width: 360px) {
    .threecolumns-two {
    width: calc(100% / 1.12);
  }
    #comm {
      margin-top: 130px;
      padding-bottom: 30px;
    }
    nav > ul {
      width: 45vw;
      display: flex;
      flex-direction: row;
      justify-content: space-around;
      margin-left: -30px;
    }
    nav {
      margin-top: 10px;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 5px 50px;
    }
    nav li {
      padding-bottom: 5px;
      padding-left: 5px;
    }
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console