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 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

              
                <!-- RESPONSIVE DOWN TO 300px WIDTH -->

<div class="page-background">

  <article>

    <h1 class="title">SURVEY FORM</h1>

    <div class="description">
      <p class="description__text">This questionnaire is part of a study of computer usage. Your participation in this study is voluntary, and your answers will form part of a statistical study and will not identify you as an individual.</p>
    </div>

    <form class="survey-form">

      <label class="name-label" for="name">Name:
          <input type="text" id="name" name="name" placeholder="Enter Name" required>
        </label>
      <label class="email-label" for="email">Email:
          <input type="email" id="email" name="email" placeholder="Enter Email" pattern=".*@.*" required>
        </label>
      <label class="number-label" for="number">Number:
          <input type="number" id="number" name="number" placeholder="Select Age" min="1" max="100">
        </label>

      <p class="skill-level">Skill Level</p>
      <select id="dropdown" class="spacer">
          <option value="" disabled>Skill Level</option>
          <option value="noob">No knowledge</option>
          <option value="noob">Noob</option>
          <option value="haxor">Haxor</option>
          <option value="guru">Guru</option>
        </select>

      <p class="favorite-os">Which is your favorite OS?</p>
      <label><input type="radio" name="os" value="linux">GNU/Linux</label>
      <label><input type="radio" name="os" value="macos">Mac OS</label>
      <label><input type="radio" name="os" value="windows">Windows</label>
      <label><input type="radio" name="os" value="freebsd">FreeBSD</label>

      <p class="hardware">Which hardware do you own?</p>
      <ul class="hardware-list">
        <li><label><input type="checkbox" name="hardware" value="2">Desktop</label></li>
        <li><label><input type="checkbox" name="hardware" value="1">Laptop</label></li>
        <li><label><input type="checkbox" name="hardware" value="3">Mini-PC</label></li>
        <li><label><input type="checkbox" name="hardware" value="4">Server</label></li>
        <li><label><input type="checkbox" name="hardware" value="5">Single Board Computer</label></li>
      </ul>

      <textarea name="" id="" placeholder="Additional Details" cols="30" rows="10"></textarea>

      <button type="submit" class="submit">SUBMIT</button>
    </form>
    <!-- END form -->

  </article>
  <!-- END article -->

  <footer>
    <p class="footer-text">created by <a class="footer-link" href="https://brandonwallace.cc" target="_blank">brandon wallace</a></p>
  </footer>
  <!-- END footer -->

</div>
              
            
!

CSS

              
                /* RESPONSIVE DOWN TO 300px WIDTH */

:root {
  --orange: hsl(26, 92%, 50%);
  --orange-dark: hsl(26, 98%, 41%);
  --dark-dark-blue: hsl(245, 66%, 23%);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  height: 100%;
  background-color: #70A1FF;
  font-family: 'Questrial', sans-serif;
  background-image: -webkit-radial-gradient(#97b0de, #5188f0);
  background-image: -o-radial-gradient(#97b0de, #5188f0);
  background-image: radial-gradient(#97b0de, #5188f0);
}

.page-background {
  background: url('https://i.postimg.cc/R0D9pmzP/orange-abstract-flowers.png');
  background-repeat: no-repeat;
  background-position: bottom;
  background-attachment:fixed;
  background-size: cover;
}

a {
  text-decoration: none;
}

ul {
  margin: 0;
  padding-left: 0;
  list-style-type: none;
}

li {
  margin-bottom: .5rem;
}

article {
  height: 100%;
  min-height: 965px;
}

.title {
  margin: 0;
  font-size: 4rem;
  text-align: center;
  color: hsl(26, 92%, 50%);
  color: var(--orange);
  font-family: 'Lato', sans-serif;
  text-shadow: 1px 1px 0 var(--dark-dark-blue),
              2px 2px 0 var(--dark-dark-blue),
              3px 3px 0 var(--dark-dark-blue),
              4px 4px 0 var(--dark-dark-blue),
              5px 5px 0 var(--orange-dark),
              6px 6px 0 var(--orange-dark),
              7px 7px 0 var(--orange-dark),
              8px 8px 0 var(--orange-dark),
              9px 9px 0 var(--dark-dark-blue),
              10px 10px 0 var(--dark-dark-blue),
              11px 11px 0 var(--dark-dark-blue);
}

.description {
  margin: 0 auto;
  padding: 0 1rem;
  max-width: 700px;
  font-weight: bold;
}

.description__text {
  text-align: justify;
  margin-bottom: 1rem;
}

.survey-form {
  width: 96%;
  margin: 0 auto;
  max-width: 700px;
  font-family: 'Questrial', sans-serif;
}

.survey-form input[type="text"],
.survey-form input[type="email"],
.survey-form input[type="number"] {
  width: 100%;
  height: 50px;
  display: block;
  margin: 0 auto;
  font-family: inherit;
  margin-bottom: 1.2rem;
  padding: .35rem .85rem;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border: 2px solid #303030;
}


.skill-level,
.favorite-os,
.hardware {
  font-weight: bold;
}

.hardware {
  margin-top: 1rem;
}

.hardware-list li {
  margin-bottom: 1.1rem;
}

select {
  height: 50px;
  display: block;
  margin-bottom: 1rem;
  padding: .35rem .85rem;
  border: 2px solid #303030;
  font-family: 'Questrial', sans-serif;
}

textarea {
  width: 100%;
  margin-bottom: 1rem;
  font-family: inherit;
  padding: .85rem .85rem;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  background-color: #FFFFFF;
  border: 2px solid #303030;
}

button {
  width: 100%;
  height: 50px;
  color: #101010;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.25rem;
  letter-spacing: 2px;
  border-top: 2px solid #232323;
  border-left: 2px solid #232323;
  border-right: 4px solid #232323;
  border-bottom: 4px solid #232323;
  background-color: hsl(26, 92%, 50%);
  background-color: var(--orange);
  -webkit-box-shadow: inset -4px -4px 0 var(--orange-dark);
          box-shadow: inset -4px -4px 0 var(--orange-dark);
}

button:hover {
  border-top: 4px solid #232323;
  border-left: 4px solid #232323;
  -webkit-box-shadow: inset 0 0 0 hsl(205, 92%, 36%);
          box-shadow: inset 0 0 0 hsl(205, 92%, 36%);
}

footer {
  height: 100px;
  padding: 1rem 0;
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 100px;
}

.footer-text {
  margin: 0;
  text-align: center;
}

.footer-link {
  border-bottom: 2px solid hsl(26, 92%, 50%);
  border-bottom: 2px solid var(--orange);
}

              
            
!

JS

              
                
              
            
!
999px

Console