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">
    <img src="https://github.com/xynoan/plp/blob/main/anime.jpg?raw=true" alt="logo" id="header-img">
    <a class="navbar-brand" href="#">XynoStore</a>
    <ul>
      <li><a href="#section" class="nav-link" id="home">Home</a></li>
      <li><a href="#features" class="nav-link" id="features2">Features</a></li>
      <li><a href="#contact" class="nav-link" id="contact">Contact</a></li>
    </ul>
  </nav>
</header>
<main>
  <section id="section">
    <h1 class="center-align">
      WELCOME TO <span id="book">XYNOSTORE!</span>
    </h1>
  </section>
  <section id="features">
    <div class="features">
      <h4 class="center-align">Why should you buy from us? <i class="fa-solid fa-thumbs-up"></i></h4>
      <hr>
      <ul>
        <li>
          <p>• Original <i class="fa-solid fa-check"></i></p>
          <h5>All the books are originally written by the imagination of the author.</h5>
        </li>
        <li>
          <p>• Fast-Shipping <i class="fa-solid fa-check"></i></p>
          <h5>Expect shipping for as early as 2-3 days, further delay will result in a complete refund.</h5>
        </li>
        <li>
          <p>• Affordable Price <i class="fa-solid fa-check"></i></p>
          <h5>PRICE = QUALITY</h5>
        </li>
      </ul>
    </div>
  </section>
  <p class="quote">"If there's a book that you want to read, but it hasn't been written yet, then you must write it."<br><br>-Toni Morrison</p>
  <div>
    <iframe src="https://www.youtube.com/embed/K4TOrB7at0Y" id="video"></iframe>

    <form action="https://www.freecodecamp.com/email-submit" id="form">
      <input id="email" name="email" type="email" placeholder="Enter your email" required>
      <button type="submit" id="submit">Submit</button>
    </form>
  </div>
  <footer class="white-text center-align">Coded by Xynoan &copy; 2022</footer>
</main>
<!-- Compiled and minified Javascript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<!-- custom js -->
<script src="javascript.js"></script>
              
            
!

CSS

              
                /* main body */
body {
    background-color: #3B8EA5;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

section {
    display: flex;
    flex-direction: column;
}

/* header css */
#header-img {
    position: absolute;
    width: 70px;
    padding: 10px;
    margin-left: 10px;
}

.home {
    margin-right: 16px;
}

.features2 {
    margin-right: 16px;
}

nav {
    position: fixed;
    background-color: #2D728F;
}

.navbar-brand {
    padding-left: 85px;
    font-size: 23px;
    font-family: cursive;
}

ul {
    float: right;
    padding-right: 25px;
    font-family: cursive;
}

/* content */
h1 {
    display: block;
    margin: 0 auto;
    margin-top: 100px;
    padding: 30px;
    background-color: #FCBFB7;
    width: 80%;
    border-style: groove;
    border-color: #735D78;
    border-radius: 50px;
    border-width: 10px;
}

h1 span#book {
    font-family: cursive;
    text-decoration: underline;
    font-style: italic;
}

h4 {
    padding-bottom: 20px;
}

p {
    font-size: 35px;
}

.features {
    display: block;
    margin: 0 auto;
    background-color: #CDFFF9;
    width: 70%;
    padding: 30px;
    border-left: 10px groove;
    border-right: 10px groove;
    border-bottom: 10px groove;
    border-color: #735D78;
    font-family: cursive;
}

.quote {
    margin-top: 50px;
    margin-left: 200px;
    margin-right: 200px;
    color: #fff;
    font-size: 27px;
    text-align: center;
    font-family: cursive;
}

#video {
    display: block;
    margin: 0 auto;
    width: 1000px;
    height: 500px;
    margin-bottom: 40px;
    border-style: groove;
    border-color: #735D78;
    border-radius: 50px;
    border-width: 10px;
}

form {
    padding: 70px;
    background-color: #FCBFB7;
    width: 90%;
    display: block;
    margin: 0 auto;
    border-style: ridge;
    border-color: #735D78;
    border-radius: 50px;
    border-width: 10px;
    margin-bottom: 37px;
}

::placeholder {
    color: black;
}

footer {
    margin-bottom: 20px;
    font-family: cursive;
}
/* media query */
@media only screen and (max-width: 768px) {
    h1 {
        font-size: 40px;
        width: 90%;
    }
    h4 {
        font-size: 30px;
    }
    .features {
        width: 70%;
    }
    p {
        font-size: 30px;
    }
    p.quote {
        font-size: 20px;
        width: 50%;
        margin: auto;
        margin-top: 25px;
        margin-bottom: 25px;
    }
    #video {
        width: 90%;
    }
    #home {
        display: none;
    }
    #features2 {
        display: none;
    }
    #contact {
        display: none;
    }
    #header-img {
        margin-left: 95px;
    }
    .navbar-brand {
        margin-left: 75px;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console