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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                
<h1 id="title">Survey form</h1>
<p id="description">Let us know about how can we  improve Coffee shop</p>
<form id="survey-form" method="GET" action="">
  <div class="container">
	<div class="form-group">
		<label for="name" id="name-label">Name:</label>
		<input  id="name" type="text" name="name" class="form-control" placeholder="Enter Your Name Here:" required>
	</div>
  <div class="form-group">
		<label for="email" id="email-label">Email Address:</label>
		<input  id="email" type="email" name="email" class="form-control" placeholder="ex:abc@gmail.com" required>
	</div>
  <div class="form-group">
		<label for="number" id="number-label"> Age:</label>
		<input  id="number" type="number" name="number" class="form-control" placeholder="Ex:21" min="1" max="60"  required>
	</div>
    <div class="form-group" id="dropdown_list">
		<label for="dropdown">How often do you visit our coffee shop?</label>
		<select name="dropdown" id="dropdown" class="form-control">
			<option>Daily</option>
			<option>Weekly</option>
			<option>Monthly</option>
			<option>Occationaly</option>
			<option>Never</option>
		</select>
	</div>
    <div class="form-group" id="check-box">
      <label for="check-box">What is your favourite drink?</label>
     <div class="inputGroup">
    <input id="option1" name="option1" value="checkbox" type="checkbox"/>
    <label for="option1">Cappuccino</label>
  </div>
    <div class="inputGroup">
    <input id="option2" name="option2" value="checkbox"type="checkbox"/>
    <label for="option2">Coffee Chocolate Chip</label>
  </div><div class="inputGroup">
    <input id="option3" name="option3" value="checkbox"type="checkbox"/>
    <label for="option3">Macchiato</label>
  </div>
    <div class="inputGroup">
    <input id="option4" name="option4" value="checkbox"type="checkbox"/>
    <label for="option4"> Cafe Latte</label>
  </div>
    <div class="inputGroup">
    <input id="option5" name="option5" value="checkbox"type="checkbox"/>
    <label for="option5"> Blue Bottle Coffee</label>
  </div>
  
    </div>
 <!--end checkbox-->

	<div class="wrapper form-group" id="radio_buttons">
		<label>How do you rate my coffee shop for following things?</label>
  <ul class="responsive-table">
    <li class="table-header">
      <div class="col col-1">List</div>
      <div class="col col-2">Excellent</div>
      <div class="col col-3">Good</div>
      <div class="col col-4">Bad</div>
    </li>
    <li class="table-row">
      <div class="col col-1">Price</div>
      <div class="col col-2" >
        <label class="radio"><input id="radio1" type="radio" name="radio1"  value="radio"><span class="outer"><span class="inner" checked></span></label> </div>
      <div class="col col-3" >  <label class="radio"><input id="radio1" type="radio" name="radio1" value="radio"><span class="outer"><span class="inner"></span></label> </div>
      <div class="col col-4" >  <label class="radio"><input id="radio1" type="radio" name="radio1"  value="radio"><span class="outer"><span class="inner"></span></label> </div>
    </li>
        <li class="table-row">
      <div class="col col-1">Quality</div>
      <div class="col col-2" >
        <label class="radio"><input id="radio2" type="radio" name="radio2"  value="radio"><span class="outer"><span class="inner"></span></label> </div>
      <div class="col col-3" >  <label class="radio"><input id="radio2" type="radio" name="radio2"  value="radio"><span class="outer"><span class="inner"></span></label> </div>
      <div class="col col-4" >  <label class="radio"><input id="radio2" type="radio" name="radio2" value="radio" ><span class="outer"><span class="inner"></span></label> </div>
    </li>
        <li class="table-row">
      <div class="col col-1">Envinorment</div>
      <div class="col col-2" >
        <label class="radio"><input id="radio3" type="radio" name="radio3"  value="radio"><span class="outer"><span class="inner"></span></label> </div>
      <div class="col col-3" >  <label class="radio"><input id="radio3" type="radio" name="radio3" value="radio"><span class="outer"><span class="inner"></span></label> </div>
      <div class="col col-4" >  <label class="radio"><input id="radio3" type="radio" name="radio3"  value="radio"><span class="outer"><span class="inner"></span></label> </div>
    </li>
        <li class="table-row">
      <div class="col col-1">Speed of service</div>
      <div class="col col-2" >
        <label class="radio"><input id="radio4" type="radio" name="radio4" value="radio"><span class="outer"><span class="inner"></span></label> </div>
      <div class="col col-3" >  <label class="radio"><input id="radio4" type="radio" name="radio4" value="radio"><span class="outer"><span class="inner"></span></label> </div>
      <div class="col col-4" >  <label class="radio"><input id="radio4" type="radio" name="radio4" value="radio" ><span class="outer"><span class="inner"></span></label> </div>
      
    </li>
        </ul>
    </div>
    <div class="form-group">
		<label>Would you like us to improve any aspect of our coffeeshop?
</label>
          </div>
          <textarea class="form-control" rows="5" style="height:50px;resize:vertical;"></textarea>

    <div class="form-group"> <!--Submit Button-->
		<button id="submit" type="submit" value="submit">Submit</button>
	</div>
    </form>
    
  </div>
              
            
!

CSS

              
                html,body{
  background-color:white;
  background-size:cover;
  margin:0 auto;
  font-size:20px;
  font-weight:bold;
}
@media screen and (max-width: 833px) {
  .input-field {
    width: 80%;
  }
  select {
    width: 90%;
  }
}
///////////////////////
.form-group{
  padding:30px 0px 0px 20px;
  margin: 0 auto;
}
h1{
  text-align:center;
  font-weight:bold;
  color:black;
}
p{
  font-size:20px;
  font-weight:bold;
  text-align:center;
  
}
label{
  color:white;
}


#submit {
  background-color: #59ace0;
  border-radius: 4px;
  color: white;
  font-size: 1em;
  height: 40px;
  width: 96px;
  margin:0 auto;
  border: 0px solid;
  margin-bottom:30px;
  
}
.form-control{
  margin:10px;
  padding:10px;
  width:200px;
  color:royalblue;
 
}
////////////////
.container {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 10px;
  padding-right:50px;
  max-height:100%;
  height:auto;
  width:600px;
  background-color:wheat;
  border-radius:20px;
  box-shadow:1px 1px 20px black
}

.responsive-table {
  li {
    border-radius: 3px;
    padding: 5px 5px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
  }
  .table-header {
    background-color:white;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color:black;
    padding:10px 5px;
  }
  .table-row {
    background-color:wheat;
    box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.5);
    color:white;
  }
  .col-1 {
    flex-basis: 25%;
    margin-left:20px;
  }
  .col-2 {
    flex-basis: 30%;
  }
  .col-3 {
    flex-basis: 25%;
  }
  .col-4 {
    flex-basis: 25%;
  }
  
  @media all and (max-width: 767px) {
    .table-header {
      display: none;
    }
    .table-row{
      
    }
    li {
      display: block;
    }
    .col {
      
      flex-basis: 100%;
      
    }
    .col {
      display: flex;
      &:before {
        color: #6C7A89;
        padding-right: 15px;
        flex-basis: 50%;
        text-align: right;
      }
    }
  }
}
@import "bourbon";


$primary-color: rgb(12,112,180);
$secondary-color:yellowgreen;
$medium-color:green;
$standard-font: normal 400 18px 'PT Sans', sans-serif;

@include keyframes(cardEnter) {
  0%, 20%, 40%, 60%, 80%, 100% {
    transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  }

  0% {
    opacity: 0;
    @include transform(scale3d(.3, .3, .3));
  }

  20% {
    @include transform(scale3d(1.1, 1.1, 1.1));
  }

  40% {
    @include transform(scale3d(.9, .9, .9));
  }

  60% {
    opacity: 1;
    @include transform(scale3d(1.03, 1.03, 1.03));
  }

  80% {
    @include transform(scale3d(.97, .97, .97));
  }

  100% {
    opacity: 1;
    @include transform(scale3d(1, 1, 1));
  }
}

.radio {
  display: inline-block;
  padding-right: 20px;
  font-size: 18px;
  line-height: 49px;
  cursor: pointer;
  &:hover .inner {
    @include transform(scale(.5));
    opacity: .5;
  }
  
 
  input {
    @include size(1px);
    opacity: 0; // Hide input, but leave it available for tabbing
    &:checked + .outer .inner {
      @include transform(scale(1));
      opacity: 1;
    }
    &:checked + .outer { border: 3px solid $secondary-color; }
    &:focus + .outer .inner {
      @include transform(scale(1));
      opacity: 1;
      background-color: darken($secondary-color, 10);
    }
  }
  
  
  .outer {
    @include size(20px);
    display: block;
    float: left;
    margin: 10px 9px 10px 10px;
    border: 3px solid $primary-color;
    border-radius: 50%;
    background-color: #fff;
  }
  
  
  .inner {
    @include transition(all .25s ease-in-out);
    @include size(16px);
    @include transform(scale(0));
    display: block;
    margin: 2px;
    border-radius: 50%;
    background-color: $secondary-color;
    opacity: 0;
  }
}
//////////////////////check////////////
input[type="checkbox"] { display: none; }

input[type="checkbox"] + label {
  display: block;
  position: relative;
  padding-left: 35px;
  padding-bottom: 20px;
  font: 14px/20px 'Open Sans', Arial, sans-serif;
  color:darkblue;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  font-size:20px;
}

input[type="checkbox"] + label:last-child { margin-bottom: 0; }

input[type="checkbox"] + label:before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid #6cc0e5;
  position: absolute;
  left: 0;
  top: 0;
  
  
  -webkit-transition: all .12s, border-color .08s;
  transition: all .12s, border-color .08s;
}

input[type="checkbox"]:checked + label:before {
  width: 10px;
  top: -5px;
  left: 5px;
  border-radius: 0;
  opacity: 1;
  border-top-color: transparent;
  border-left-color: transparent;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  
}
.boxes {
  margin: auto 0;
  padding: 50px;
}
  input:checked ~ label {
      color: green;
    font-size:20px;

}

              
            
!

JS

              
                
              
            
!
999px

Console