Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!DOCTYPE html>
<html>

<head>
  <title>
    eLearning Store
  </title>
  <link href="https://fonts.googleapis.com/css?family=Playfair+Display|Raleway:400,700;|Open+Sans" rel="stylesheet" itemprop="">
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
</head>

<body>
  <header id="header">
      <div class="header-row">
        <div class="header-logo">
          <div class="logo-container">
            <img src="https://image.flaticon.com/icons/svg/30/30915.svg" id="header-img"></img>
          </div>
        </div>
        <nav id="nav-bar">
          <div class="nav-item">
            <a class="nav-link" href="#about-section">About</a>
          </div>
          <div class="nav-divider">
          </div>
          <div class="nav-item">
            <a class="nav-link" href="#store-section">Store</a>
          </div>
          <div class="nav-divider">
          </div>
          <div class="nav-item">
            <a class="nav-link" href="#contact-section">Contact</a>
          </div>
        </nav>
      </div>
    </>
  </header>
  <div class="page-body-container">
    <div class="page-title-container">
      <h1 class="page-title">Higher Education from your Home</h1>
    </div>
    <div class="product-intro">
      <a class="anchor" id="about-section"></a>
      <h2 class="section-intro-text"><a name="about-section">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam odio erat, molestie quis vulputate et, tincidunt non lacus. Fusce efficitur mauris id tellus vestibulum ornare.</h2>
    </div>
    <div class="auto-resizable-iframe">
      <div>
        <iframe class="embedded-video" id="video" src="https://www.youtube.com/embed/pgdEQOfRIa4" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
      </div>
    </div>

    <div>
      <div id="store-intro">
        <h3 class="section-intro-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin eleifend odio varius tincidunt sagittis. Nulla eu tortor rhoncus, posuere lacus vitae, varius justo. Quisque porttitor suscipit ligula, eu pellentesque purus semper at. Sed eget libero
          turpis. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</h3>
      </div>
      <div id="store-header-container">
        <a class="anchor" id="store-section"></a>
        <h2 id="section-header">Store</h2>
    </div>
    <div id="store-container">
      <div class="store-item" id="store-item-1">
        <div class="store-item-header">
          <h4 class="store-item-header-text">Philosophy
          </h4>
        </div>
        <div class="store-item-body">
          <h5>£1.99 per month</h5>
          <ul class="store-list">
            <li>Lorem ipsum</li>
            <li>Lorem ipsum</li>
            <li>Lorem ipsum dolor sit</li>
            <li>Lorem ipsum</li>
          </ul>
          <div class="button-wrapper">
            <button class="store-buy-button">Buy now</button>
          </div>
        </div>
      </div>
      <div class="store-item" id="store-item-2">
        <div class="store-item-header">
          <h4 class="store-item-header-text">Sociology
          </h4>
        </div>
        <div class="store-item-body">
          <h5>£1.99 per month</h5>
          <ul>
            <li>Lorem ipsum</li>
            <li>Lorem ipsum</li>
            <li>Lorem ipsum dolor sit</li>
            <li>Lorem ipsum</li>
          </ul>
          <div class="button-wrapper">
            <button class="store-buy-button">Buy now</button>
          </div>
        </div>
      </div>
      <div class="store-item" id="store-item-3">
        <div class="store-item-header">
          <h4 class="store-item-header-text">Economics
          </h4>
        </div>
        <div class="store-item-body">
          <h5>£1.99 per month</h5>
          <ul>
            <li>Lorem ipsum</li>
            <li>Lorem ipsum</li>
            <li>Lorem ipsum dolor sit</li>
            <li>Lorem ipsum</li>
          </ul>
          <div class="button-wrapper">
            <button class="store-buy-button">Buy now</button>
          </div>
        </div>
      </div>
    </div>
    <div id="contact-header-container">
      <a class="anchor" id="contact-section"></a>
      <h2 id="section-header">Want to find out more?</h2>
    </div>
    <div id="contact-intro">
      <h3 class="section-intro-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin eleifend odio varius tincidunt sagittis. Nulla eu tortor rhoncus, posuere lacus vitae, varius justo. Quisque porttitor suscipit ligula, eu pellentesque purus semper at. Sed eget libero.</h3>
    </div>
    <div class="form-container">
      <form id="form" action="https://www.freecodecamp.com/email-submit">
        <div class="form-row">
          <div class="left-tab">
            <label id="name-label" class="form-label">Name*</label>
          </div>
          <div class="right-tab">
            <input class="text-input" id="name" type="text" name="name" placeholder="Enter your name" required>
          </div>
        </div>
        <div class="form-row">
          <div class="left-tab">
            <label class="form-label" id="email-label">Email*</label>
          </div>
          <div class="right-tab">
            <input class="text-input" id="email" type="email" name="email" placeholder="Enter your email" required>
          </div>
        </div>
        <div class="form-row">
          <div class="submit-btn">
            <input type="submit" id="submit">
          </div>
        </div>
    </div>
  </div>
</body>

<footer>
  <div id="footer-container">
  </div>
</footer>

</html>
            
          
!
            
              body {
  margin: 0;
}

a.anchor {
  display: block;
  position: relative;
  top: -150px;
  visibility: hidden; 
}

h2 {
  font-weight: 400;
}

h3 {
  font-weight: 400;
}

header {
  position: fixed;
}

.header-row{
  display: flex;
  position: fixed;
  top: 0;
  width: 100%;
  height: 5em;
  font-size: 1.5em;
  background-color:#012034;
}

.nav-item a {
  text-decoration: none;
  text-color: white;
}

.header-logo {
  border-right: solid;
  border-color: white;
  border-width: 7px;
}

.logo-container {
  display: flex;
  width: 5em;
}

nav {
  display: flex;
  font-family: 'Raleway';
  width: 100%;
}

.nav-item {
  width: 33.33%;
  text-align: center;
  font-size: 1.5em;
  color: white;
  
}

#header-img {
  width: inherit;
  height: inherit;
  padding-top: 7px;
  color: white;
  position: fixed;
}

.nav-link {
  position: relative;
  top: 30%;
  color: white;
}

.nav-divider {
  position: relative;
  width: 1px;
  background-color: white;
  height: 3em;
  top: 18%;
}

.page-body-container {
  font-family: 'Raleway';
  font-weight: 400;
}

.page-title-container {
  width: 100%;
  padding-top: 50px;
  margin: 0 auto;
  text-align: center;
}

.page-title {
  font-family: 'Playfair Display';
  font-size: 5em;
  font-weight: 1;
  padding: 60px 150px 30px 150px;
}

@media screen and (max-width: 667px) {
  .page-title {
  font-family: 'Playfair Display';
  font-size: 4em;
  font-weight: 1;
  padding: 30px 75px 15px 75px;
  }
}

.product-intro {
  width: 100%;
  text-align: center;
  font-family: 'Raleway'
}

.section-intro-text {
  padding: 0px 10% 0px 10%;
  font-size: 1.5em;
  font-family: "Raleway"
}

.auto-resizable-iframe {
  padding: 50px 0 50px 0;
  max-width: 640px;
  margin: 0px auto;
  position: relative;
}

.auto-resizable-iframe > div {
  position: relative;
  padding-bottom: 75%;
  height: 0px;
}

.auto-resizable-iframe iframe {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#store-intro {
  width: 100%;
  text-align: justify;
}

#store-header-container {
  width: 100%;
}

#section-header {
  text-align:center;
  font-family: "Playfair Display";
  font-size: 3.5em;
}

#store-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.store-item {
  display: flex;
  flex-direction:column;
  min-width: 250px;
  margin: 30px;
  height: 400px;
  border: solid;
  border-color: #012034;
  align-items: center;
}

.store-item-header {
  position: absolute, top;
  background-color:#012034;
  width:100%;
  height: 20%;
  z-index: -1;
}

.store-item-header-text {
  margin: 0;
  height: 100%;
  width: 100%;
  color: white;
  font-family: "Raleway";
  text-align: center;
  font-size: 2.4em;
  position: relative;
  top: 18%;
  z-index: -2;
}

.store-item-body {
  width: 100%;
  height: 100%;
  align-items: center;
}

.store-item-body h5 {
  text-align: center;
  font-size: 1.5em;
  font-weight: 700;
}

.store-item-body ul {
  padding: 0;
}

.store-item-body li {
  text-align: center;
  list-style-type: none;
  margin: 10px;
}

.button-wrapper {
  margin-top: 10%;
  display: flex;
  justify-content: center;
  align-text: center;
}

.store-buy-button {
  font-family: 'raleway';
  font-size: 15pt;
  cursor: pointer;
}

.form-container {
  display: flex;
  flex-direction:column;
}

.form-row {
  display: flex;
  padding:0.5em;
}

.left-tab {
  width: 50%;
  text-align: right;
  padding-right: 1em;
  align-items: center;
}

.right-tab {
  width: 50%;
}

.form-label {
  
}

.submit-btn {
  width: 100%;
  text-align: center;
}

#footer-container {
  height: 50px;
  background-color:#012034;
}


            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console