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

              
                <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300&family=Viaoda+Libre&display=swap" rel="stylesheet">
<main>
  <div id="overlay-color"></div>
 <div id="phoenix" class="container">
 <header><h1 id="title"> Survey for Orchestra Concerts</h1>
 <h2>Gauging of Classical repertoire</h2></header>
 
<form id="survey-form"> 
<p id="description"> Thank you for taking time to complete this survey. It will help us determine future concert repertoire.</p>

 <div id="consumer-info">
 <label for="name" id="name-label">
       Name: <input type="text" name="info" id="name" placeholder="Name" required></label>  
<label for:"email" id="email-label">
 E-mail:
 <input type="email" id="email" name="info" placeholder="E-Mail" required></label>
  <label  for="number" id="number-label">
   Age <input type="number" id="number" required name="info" placeholder="Age" min="5" max="120" required></label>
  </div>
  <br></br>
  <div id="subscription">
    <p id="instructions"> <strong>Select which subscription you purchase</strong></p>
    <label id="subscription-label"><input type="radio" name="subscription" value="1">Classics-Full</label>
    <label id="subscription-label"><input type="radio" name="subcription" value="2">Classics-Choose your Own</label>
    <label id="subcription-label"><input type="radio" name="subscription" value="3">Pops-Full</label>
    <label id="subscription-label"><input type="radio" name="subcription" value="4">Pops-Choose your Own<label>
  </div>
      <br></br>
 <div id="checkboxes">
   <p><strong>What musical eras do you prefer?</strong></p>
   <label for="baroque">
     <input type="checkbox" name="baroque" id="genre" value="Baroque">Baroque</label>
   <label for="classical"><input type="checkbox" id="genre" name="classical" value="Classical">Classical</label> 
   <label for="romantic"><input type="checkbox" id="genre" name="romantic" value="Romantic">Romantic</label>
   <label for="modern"><input type="checkbox" id="genre" name="modern" value="Modern">Modern</label>
      </div>
     <div id="dropdown">
       <p><strong> Which venue is your favorite?</strong></p>
       <select name="venue" placeholder="Select">
         <option value="select" selected>Select</option>
         <option value="symphony-hall">Symphony Hall</option>
         <option value="orpheum-theatre">Orpheum Theatre</option>
         <option value="mesa-center-for-the-arts">Mesa Center for the Arts</option>
       </select>
    </div>
    <br></br>
  <label for="comments-label"><strong>
    Do you have additional comments about past repertoire? Let us know below:</strong>
    <br></br>
    <textarea></textarea>
   </label>
  <button type="submit" id="submit"><strong>SUBMIT</strong>
    </button> 
  </form>
 
  <footer> Thank you for supporting the arts</footer>
  </div>
</main>
              
            
!

CSS

              
                <style>
body { background-color: #F0A91C;}

.container { display: grid;
grid-template-rows: 1fr 4fr 20px;
background-color: gray;
grid-template-columns: 1fr 1.50fr 1fr;
grid-gap: 5px 5px;
grid-template-areas: ". header ."
". form ."
 ". footer .";}

#phoenix { background-image: url(https://live.staticflickr.com/7047/6808146392_63b2e755bc_b.jpg);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  max-width: 100%;
  height: auto;
  }

header {display: flex; 
  flex-direction: column;
  align-items: center;
  grid-area: header;
  height: 150px;
  background-color: #F1521B;
  font-family: 'Viaoda Libre', cursive;
}
h2 { margin-top: -15px;}

#survey-form { background: linear-gradient(0deg, #F1521B, #F0A91C);
grid-area: form;
display: flex;
flex-direction: column;
font-family: 'Roboto', sans-serif;
text-align: center;}

#subscription, #checkboxes { display: flex;
flex-direction: column;
text-align: center;}

footer {background-color: #E9812A;
grid-area: footer;
display: flex;
flex-direction: column;
align-items: center;}

textarea { width: 300px;
height: 90px;}

</style>
              
            
!

JS

              
                
              
            
!
999px

Console