Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <div class="container">
  <div class="right-section">
    <div class="right-section-wrapper">
      <h1 class="title">
        Learn to code by watching others
      </h1>
      <h3 class="description">
        See how experienced developers solve problems in real-time. Watching tutorials is great, but understanding how developers think is invaluable.
      </h3>
    </div>
  </div>

  <div class="left-section">
    <div class="left-section-wrapper">
      <div class="disclaimer">

        <span class="disclaimer-highlight">
          Try it free for 7 days!
        </span>
        <span class="disclaimer-text">
          *$20/month thereafter.
        </span>
      </div>
      <div class="form">
        <form autocomplete="off">
          <input type="text" class="first-name" placeholder="First Name" autocomplete="off" />
          <input type="text" class="last-name" placeholder="Last Name" />
          <input type="email" class="email" placeholder="Email Address" />
          <input type="password" class="password" placeholder="Password" />
          <button class="form-btn">
            <span class="form-btn-text">CLAIM YOUR FREE TRIAL</span>
          </button>
          <p class="terms">
            By clicking the button, you are agreeing to our
            <span class="terms-highlight">
              Terms and Services
            </span>
          </p>
        </form>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Poppins:400, 500, 600, 700);

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  height: 100vh;
  width: 100vw;
  background-image: url("https://github.com/panda-satyabrata/hosting-images/blob/main/singup_form_bg_codepen.png?raw=true");
/*   background-repeat: no-repeat; */
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.container {
  display: flex;
  flex-direction: row;
/*   flex-wrap: nowrap; */
}

.right-section {
  flex: 1 1 50%;
}

.left-section {
  flex: 1 1 50%;
}

.right-section-wrapper {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10% 0 20%;
  color: #fff;
}

.title {
  font-size: 48px;
  font-weight: 700;
  padding-bottom: 32px;
}

.description {
  font-weight: 500;
  padding-bottom: 30px;
}

.left-section-wrapper {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.disclaimer {
  background-color: rgb(96, 85, 165);
  width: 80%;
  padding: 10px;
  text-align: center;
  color: white;
  align-content: center;
  border-radius: 8px;
  box-shadow: 0px 5px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.disclaimer-text {
  font-size: 12px;
  font-weight: 400;
}

.disclaimer-highlight {
  font-weight: 700;
  font-size: 12px;
}

.form {
  background: #fff;
  display: flex;
  width: 80%;
  flex-direction: column;
  padding-top: 32px;
  border-radius: 8px;
  box-shadow: 0px 5px rgba(0, 0, 0, 0.2);
}

.form input {
  width: 80%;
  padding: 16px 25px 16px 25px;
  margin-bottom: 20px;
  margin-left: 10%;
  margin-left: 10%;
  align-self: center;
  border: 1px solid rgb(185, 182, 211);
  border-radius: 6px;
  font-weight: 600;
  color: #000000;
}

.form input:focus {
  border: 1px solid black;
}

.form button {
  width: 80%;
  padding: 16px 25px 16px 25px;
  margin-bottom: 20px;
  margin-left: 10%;
  margin-left: 10%;
  align-self: center;
  border-radius: 6px;
  color: white;
  background: rgb(56, 204, 140);
  border: none;
}

.form-btn:focus {
  cursor: pointer;
}

.form p {
  width: 80%;
  font-size: 10px;
  padding: 0 25px 16px 25px;
  text-align: center;
  margin-bottom: 20px;
  margin-left: 10%;
  margin-left: 10%;
}

.terms {
  color: rgb(185, 182, 211);
}

.terms-highlight {
  color: rgb(255, 122, 122);
  font-weight: 600;
}

@media screen and (max-width: 900px) {
  .disclaimer {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
  }

  .form {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
  }

  .form input {
    width: 80%;
    padding: 16px;
    margin-left: 10%;
    margin-left: 10%;
    align-self: center;
  }

  .form button {
    width: 80%;
    padding: 16px;
    margin-left: 10%;
    margin-left: 10%;
    align-self: center;
  }

  .form p {
    width: 80%;
    margin-left: 10%;
    margin-left: 10%;
  }
}

@media screen and (max-width: 600px) {
  body {
    background-image: url("https://github.com/panda-satyabrata/hosting-images/blob/main/singup_form_bg_mobile_codepen.png?raw=true");
  }

  .container {
    flex-direction: column;
  }

  .right-section-wrapper {
    height: 60vh;
    padding: 0 10% 0 10%;
  }

  .title {
    font-size: 42px;
    padding-top: 40px;
    padding-bottom: 32px;
  }

  .description {
    padding-bottom: 0px;
  }

  .left-section-wrapper {
    height: 65vh;
  }

  .disclaimer {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
  }

  .form {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
    flex-direction: column;
  }

  .form input {
    width: 80%;
    padding: 16px;
    margin-left: 10%;
    margin-left: 10%;
    align-self: center;
  }

  .form button {
    width: 80%;
    padding: 16px;
    margin-left: 10%;
    margin-left: 10%;
    align-self: center;
  }

  .form p {
    width: 80%;
    margin-left: 10%;
    margin-left: 10%;
  }
}

@media screen and (max-width: 400px) {
  .right-section-wrapper {
    height: 75vh;
  }
  
    .title {
    padding-top: 20px;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console