css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

            
              <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<header>
  
  <div id="nav-container">
    <nav>
    <div id="main_nav_left" >
      <div class="main_nav_list" >contact information</div>
      <div class="main_nav_list"><img title="archive" src="https://img.icons8.com/office/28/000000/folder-invoices.png"></div>
      <input class="main_nav_list" type="checkbox" id="star"></input>
    </div>
      
  <!--menu on the right-->
      <div id="main_nav_right" >
        <div class="main_nav_list"><img title="customize theme" src="https://img.icons8.com/office/28/000000/paint-palette.png"></div>
        <div class="main_nav_list"><img title="preview" src="https://img.icons8.com/office/28/000000/medium-icons.png"></div>
        <div class="main_nav_list"><img title="settings" src="https://img.icons8.com/color/28/000000/settings.png"></div>
        <div class="main_nav_list"><div id="button_container"><div id="main_nav_button">send</div></div></div>
        <div class="main_nav_list"><img title="more"src="https://img.icons8.com/office/28/000000/menu-2.png"></div>
        <div class="main_nav_list"><img id="profile-photo" title="Google Account" src="https://avatars2.githubusercontent.com/u/18001693?v=4"></div>
      </div><!-- end of menu right-->
    </nav>
 </div> <!-- end of primary nav-->

  <!-- secondary nav-->
    <div id="secondary_nav_container">
     <div id="secondary_nav_wrapper"> 
       <div class="tabs" id="questions_tab"><a href="#">QUESTIONS</a></div>
       <div class="tabs" id="responses_tab"><a href="#">RESPONSES</a></div>
      </div>
  </div>
</header>
<!--SURVEY FORM STARTS-->
<main>
  
  <form id="survey-form">
<h1 id="title">Asking Stuff Form</h1>
    
       <p id="description">I know... I am going to take a lot of your precious time but if I don't, you are going to  complain that we never asked for your opinion.<br> So, take a f***ing minute to answer the questions, will you?</p>
    
    <!--section for personal data-->
    <!--NAME-->
    <div class="section" id="personal-information">
      <div class="left">
        <label id="name-label" for="name">Name:</label> 
        
      </div>
      <div class="right">
        
        <input  class="writable" id= "name" type="text" required placeholder="name goes here, dimwit">
      </div>
    <!--END OF NAME-->
    <!--EMAIL-->

  <div class="left">
      <label  class="flex" id="email-label" for="email">Email:</label> 
  </div>
  <div class="right">
      <input  class="writable" id="email" type="email" required placeholder="donwannagivemydata@me.com">
  </div>
   <!--END OF EMAIL-->
    <!--NUMBER OF FINGERS-->
  
      <div class="left">
      <label  id="number-label" for="number">Number of fingers:</label>
      </div>
      <div class="right">
      <input id="number" type="number" required name="quantity" min="1" max="12" placeholder="1">
      </div>
    </div><!--END OF FINGERS-->
  <!-- SECTION end of personal information -->
    <hr>
    <!--SECTION: beauty level-->
    <div class="section">
      <div class="left">
    <label  id="dropdown-label"for="dropdown">On a scale of beauty, how do you find yourself when you look in the mirror:</label>
      </div>
      <div class="right">
    <select id="dropdown">
      <option value="">--  select an option  --</option>
      <option value="Devine">Devine/Out of this world</option>
      <option value="gorgious">Devastatingly gorgious</option>
      <option value="commonly beautiful">Commonly beautiful</option>
      <option value="imperfect beauty">imperfect beauty</option>
      <option value="just average">just average</option>
      <option value="ugly cute">ugly cute</option>
      <option value="ugly">ugly</option>
      <option value="super ugly">super ugly</option>
      <option value="monter">monster</option>
     </select> 
      </div>
    </div><!--END OF SECTION BEAUTY LEVEL-->
<hr>
    <!--SECTION HANDEDNESS-->
    
    <fieldset>
      <div class="section">
      <div class="left">
      <legend>I am </legend>
      </div>
      <ul class="right">
        
        <li><label for="radio1"><input class="radio_buttons" id="radio1" type="radio" name="type_of" value="radio1">left-handed</label></li>
        <li>
        <label for="radio2"><input class="radio_buttons" id="radio2" type="radio" name="type_of" value="radio2">ambidextrous</label></li>
        
        <li><label for="radio3"><input class="radio_buttons" id="radio3" type="radio" name="type_of" value="radio3">right-handed
          </label></li>
      </ul>
        </div>
      </fieldset>
    <!--END OF SECTION HANDEDNESS-->
    <hr>
    <!--SECTION PERSONALITY-->
    
    <div class="section">
      <div class="left">
    <label  for="checkbox"> Choose what applies to you. I am: </label>
      </div>
      <ul class="right">
      <li><label><input value="1" class="checkbox" type="checkbox" name="check">ambitious</label></li>
   <li> <label><input value="2" class="checkbox" type="checkbox" name="check">dependable</label></li>
        <li><label><input value="3" class="checkbox" type="checkbox" name="check">sociable</label></li>
        <li><label><input value="4" class="checkbox" type="checkbox" name="check">reliable</label></li>
        <li><label><input value="5" class="checkbox" type="checkbox" name="check">joyful</label></li>
        <li><label><input value="6" class="checkbox" type="checkbox" name="check">introvert</label></li>
        <li><label><input value="7" class="checkbox" type="checkbox" name="check">Groot</label></li>
      </ul>
    </div>
    <!--END OF SECTION PERSONALITY-->
    <hr>
    <!--SECTION COMMENTS-->
    <div class="section">
      <div class="left">
    <label>Write what you want here, I don't care:</label>
      </div>
      <div class="right">
      <textarea class="writable" type="textarea" name="whatUwant" maxlength="500" placeholder="Put your thoughts in here"></textarea>
      </div>
    </div><!--END OF SECTION COMMENTS-->
    <hr>
    <button id="submit" name="submit" type="submit">Submit</button>
  </form>
</main> <!--SUREVY FORM ENDS-->
<!--FOOTER-->
<footer>
  <a href="https://tvtropes.org/pmwiki/pmwiki.php/Main/SlidingScaleOfBeauty">Scale of Beauty</a>
  <a href="https://icons8.com/icon/21079/folder">Folder icon by Icons8</a>
  <a href="https://icons8.com/icon/22298/paint-palette">Paint Palette icon by Icons8</a>
  <a href="https://icons8.com/icon/21368/medium-icons">Medium Icons icon by Icons8</a>
  <a href="https://icons8.com/icon/12784/settings">Settings icon by Icons8</a>
  <a href="https://icons8.com/icon/21370/menu-vertical">Menu Vertical icon by Icons8</a>
  
</footer>

<!-- https://stackoverflow.com/questions/6813699/how-to-change-an-image-on-click-using-css-alone-->
            
          
!
            
              body{
  font-family: Roboto,RobotoDraft,Helvetica,Arial,sans-serif;
  background-color: rgb(205, 231, 199);
  margin:0;
}

/*HEADER*/
header{
  display:flex;
  position:fixed;
  top: 0px;
  width: 100%;
  height: 184px;
  background-color: rgb(59, 120, 45);
}

#nav-container{
  width: 100%;
}

nav{
  padding: 10px;
  display: flex;
  justify-content: space-between;
}

#main_nav_right,  #main_nav_left{
  display: flex;
}

.main_nav_list{
  padding: 10px;
}

/* star something*/
#star{
  width: 0;
  height: 0;
  margin: 0;
  border: 0 none;
  padding: 0; 
}

#star:before{
    width: 300px;
    height: 300px;
    overflow: hidden;
  content: url("https://img.icons8.com/color/30/000000/star.png");
}

#star:checked:before{
  content: url("https://img.icons8.com/color/30/000000/filled-star.png");
}

/*send button*/
#main_nav_button{
  line-height: 20px;
  padding: 4px 15px ;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  background-color: white;
  color: rgb(59, 120, 45);
  font-family: Roboto,RobotoDraft,Helvetica,Arial,sans-serif;
  border-radius: 3px;
}

#profile-photo{
  width: 7%;
  border-radius: 50%;
}

/*questions and repsonses nav*/
#secondary_nav_container{
  width: 100%;
  background-color: rgb(59, 120, 45);;
  position: absolute; /*????*/
  align-self: flex-end;
  border-bottom: 1px solid grey;
 
}

#secondary_nav_wrapper{
  margin: auto; 
  width: 770px;
  background-color: #FFF; 
  height: 48px;
  display: flex;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 48px;
  
}

.tabs {
 padding: 10px;
}

.tabs a{
  text-decoration: none;
  color: rgba(0,0,0,0.54);
}

#questions_tab{
  color: #4CAF50;
  border-bottom: 2px solid  #4CAF50;
  text-decoration: none;
}




/*////////////////////////*/
h1{
font-size:12px;
font-weight: 800;
margin-bottom: 0;
}


p{
 margin-top:0;
 font-size: 12px;
 font-weight: 400;
 padding: 70px;
}

li{
  list-style-type:none;
}



/*SURVEY FORM */
main{
  maxwidth:auto;
  font-family: 'Cormorant Garamond', serif;
}

#internal_navigation{
  margin: 5em 20em;
  padding: 100px;
  background-color: pink;
}

#survey-form{
  margin: auto;
  background-color: #FFF;
  width: 770px; 
  padding: 30px 0px;
}

.section{
  padding: 1em; 
  display: flex;
}

.left, .right{
  width:50%;
  margin: 10px;
}

.left{
  text-align: right;
}
.right{
  text-align: left;
 padding-left: 0.5em;
}
/*gives some necessary space between the header and the top section*/
#personal-information{
  padding-top:50px;
}

.radio_buttons, .checkbox{
  margin-right:1em;
}

.writable{
  width:150px;
}


/*submit button*/
#submit{
  display: block;
  margin: auto;  
  text-transform: uppercase;
  padding: 1em;
  border-radius: 30%;
}
#submit:hover{
  background-color: rgba(45, 45, 45, 0.1);
  color: white;
  transform:scale(1.5);
}
            
          
!
            
              //TODO: see JS30 day 15
            
          
!
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.
Loading ..................

Console