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

              
                <div id="main">
  <div id="pos-y-side-right"></div>

  <div id="side-form-left">

    <div class="gral-content">
      <h1 id="title">Budget request</h1>

      <p id="description">
        We provide consulting services, software development, customer service, fiber optics and digital television.<br>
        <br>Write to us for more information about these services and our commercial advisers will be happy to get in touch with you.
      </p>
    </div>
  </div>

  <div id="side-form-right">

    <div class="gral-content">
      <form id="survey-form">

        <label for="name" id="name-label">Name</label>
        <input type="text" id="name" name="name" placeholder="Your name" autofocus required>
        <label for="email" id="email-label">Email</label>
        <input type="email" id="email" name="email" placeholder="example@example.com" required>
        <label for="number" id="number-label">Age</label>
        <input type="number" id="number" name="number" placeholder="35" min="18" max="120" required>

        <p>What business does your company belong to?</p>
        <div class="select">
          <select id="dropdown" name="dropdown">
            <option value="value1" disabled selected>Select an area</option>
            <option value="value2">Aeronautics</option>
            <option value="value3">Design and Advertising</option>
            <option value="value3">Video streaming</option>
          </select>
        </div>

        <div class="contenedor-radio">
          <p>How big is your company?</p>

          <div>
            <input class="input-check" type="radio" id="radio" name="radio" value="radio">
            <label class="label-check" for="radio">Multinational corporation</label>
          </div>

          <div>
            <input class="input-check" type="radio" id="Value2" name="radio" value="Value2">
            <label class="label-check" for="Value2">National company</label>
          </div>

          <div>
            <input class="input-check" type="radio" id="Value3" name="radio" value="Value3">
            <label class="label-check" for="Value3">Small local business</label>
          </div>
        </div>

        <div class="contenedor-check">
          <p>How do you want us to contact you?</p>

          <div>
            <input class="input-check" type="checkbox" id="check1" value="value1" name="check">
            <label class="label-check" for="check1">Scheduled visit</label>
          </div>

          <div>
            <input class="input-check" type="checkbox" id="check2" value="value2" name="check">
            <label class="label-check" for="check2">Video conference meeting</label>
          </div>

          <div>
            <input class="input-check" type="checkbox" id="check3" value="value3" name="check">
            <label class="label-check" for="check3">Phone call</label>
          </div>
        </div>

        <div id="textarea">
          <p id="comments">Comments:</p>
          <textarea name="textarea" rows="10" cols="50" placeholder="Please expand your request."></textarea>
        </div>

        <div id="button-submit">
          <button type="submit" id="submit">Submit</button>
        </div>
      </form>
    </div>
  </div>
</div>
              
            
!

CSS

              
                body {
  background-color: rgb(223, 223, 223);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  font-family: "Quicksand", sans-serif;
  color: white;
}

h1 {
  font-size: 2rem;
}

input {
  padding-top: 3%;
  padding-bottom: 3%;
  padding-left: 3%;
  width: 98%;
  border-color: white;
  border-bottom: 2px solid #ffffff;
  border-left: 0px;
  border-right: 0px;
  border-top: 0px;
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 40px;
  background: transparent;
  color: white;
  opacity: 70%;
}

input::placeholder {
  color: white;
  font-weight: 400;
}

input:focus {
  background: rgb(92, 92, 92);
  border-color: wheat;
  border: 1px solid;
}

label {
  font-size: 14px;
  font-weight: 700;
}

select {
  position: relative;
  top: -2px;
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  border-color: white;
  border-bottom: 2px solid #ffffff;
  border-left: 0px;
  border-right: 0px;
  border-top: 0px;
  font-style: normal;
  font-weight: 300;
  font-size: 1.2rem;
  font-family: "Quicksand", sans-serif;
  background: transparent;
  cursor: pointer;
  color: white;
}

option {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  color: white;
  background: #bb6bd9;
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
}

option:disabled {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  color: rgb(241, 241, 241);
}

textarea {
  width: 95%;
  height: 120px;
  padding: 10px 0px 0px 20px;
  background: transparent;
  border: 1px solid white;
  border-radius: 11px;
  font-size: 15px;
  font-family: "Quicksand", sans-serif;
  color: white;
}

textarea::placeholder {
  color: white;
}

#textarea {
  position: relative;
  top: 10%;
}

#comments {
  position: relative;
}

/* select */

.select {
  position: relative;
  display: flex;
  width: 100%;
  height: 4em;
  overflow: hidden;
}

.select::after {
  content: "\25BC";
  position: absolute;
  top: 1.5em;
  right: 0;
  left: 88%;
  padding: 0 1em;
  cursor: pointer;
  pointer-events: none;
  transition: 0.25s all ease;
}

.gral-content {
  margin: 0 8% 8% 8%;
}

#description {
  font-size: 14px;
  font-weight: 500;
}

#main {
  margin-left: 22%;
  margin-right: 5%;
  margin-bottom: 15%;
  padding-bottom: 32%;
}

#side-form-left {
  background: linear-gradient(180deg, #2d9cdb 0%, #242424 100%);
  mix-blend-mode: normal;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 11px 0px 0px 11px;
  width: 20rem;
  float: left;
  position: relative;
  margin-top: 5%;
}

#pos-y-side-right {
  height: 30px;
  position: relative;
}

#side-form-right {
  position: relative;
  height: 940px;
  background: linear-gradient(180deg, #bb6bd9 10%, #242424 60%);
  mix-blend-mode: normal;
  box-shadow: -7px 7px 11px rgba(0, 0, 0, 0.35);
  border-radius: 0px 11px 11px 0px;
  width: 35rem;
  float: left;
  padding-top: 3%;
}

#dropdown {
  padding-right: 1em;
  width: 100%;
  padding-top: 10px;
  position: relative;
}

#submit {
  width: 150%;
  height: 39px;
  background-color: white;
  border: 1px solid white;
  border-radius: 15px;
  text-align: center;
  color: #2f80ed;
  font-size: 20px;
}

#submit:hover {
  background: linear-gradient(90deg, #bb6bd9 0%, #2d9cdb 100%);
  color: white;
}

#submit::after {
  background: tomato;
}

#button-submit {
  position: absolute;
  top: 95%;
  left: 35%;
}

.label-check {
  position: absolute;
  margin: -35px 0px 0px 10px;
  cursor: pointer;
}

.input-check {
  position: relative;
  left: 25%;
  top: -15px;
  margin: 15px 0px 0px 45px;
  cursor: pointer;
}

/* <<<<<<< RESPONSIVE 0 a 656 >>>>>>> */

@media (min-width: 0px) {
  h1 {
    font-size: 1.3rem;
  }
}

@media (min-width: 0px) {
  #main {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15%;
    padding-bottom: 52%;
  }
}

@media (min-width: 0px) {
  #side-form-left {
    width: 20rem;
    box-shadow: -8px 7px 4px rgba(0, 0, 0, 0.25);
    border-radius: 11px 11px 0px 0px;
  }
}

@media (min-width: 0px) {
  #side-form-right {
    width: 20rem;
    border-radius: 0px 0px 11px 11px;
  }
}

/* <<<<<<< RESPONSIVE 657 a 703 >>>>>>> */

@media (min-width: 704px) {
  #main {
    margin-left: 15%;
    margin-right: 5%;
    margin-bottom: 15%;
    padding-bottom: 32%;
  }
}

@media (min-width: 704px) {
  #side-form-left {
    width: 25rem;
    float: left;
    position: relative;
    margin-top: 5%;
    border-radius: 11px 11px 0px 0px;
  }
}

@media (min-width: 704px) {
  #side-form-right {
    width: 25rem;
    float: left;
    padding-top: 3%;
    position: relative;
    border-radius: 0px 0px 11px 11px;
  }
}

/* <<<<<<< RESPONSIVE 704 a 1000 >>>>>>> */

@media (min-width: 704px) {
  #main {
    margin-left: 10rem;
    margin-right: auto;
    margin-bottom: 15%;
    padding-bottom: 32%;
  }
}

@media (min-width: 704px) {
  #side-form-left {
    width: 15rem;
    float: left;
    position: relative;
    margin-top: 5%;
    border-radius: 11px 0px 0px 11px;
  }
}

@media (min-width: 704px) {
  #side-form-right {
    width: 21rem;
    float: left;
    padding-top: 3%;
    position: relative;
    border-radius: 0px 11px 11px 0px;
  }
}

/* <<<<<<< END RESPONSIVE >>>>>>> */

/* <<<<<<< RESPONSIVE 1001 - 1920 >>>>>>> */

@media (min-width: 1000px) {
  #main {
    margin-left: 6rem;
    margin-right: auto;
    margin-bottom: 15%;
    padding-bottom: 32%;
  }
}

@media (min-width: 1000px) {
  #side-form-left {
    width: 20rem;
    float: left;
    position: relative;
    margin-top: 5%;
  }
}

@media (min-width: 1000px) {
  #side-form-right {
    width: 24rem;
    float: left;
    padding-top: 3%;
    position: relative;
  }
}

/* <<<<<<< RESPONSIVE 1920 and more >>>>>>> */

@media (min-width: 1001px) {
  #main {
    margin-left: 32rem;
    margin-right: auto;
    margin-bottom: 15%;
    padding-bottom: 32%;
  }
}

@media (min-width: 1001px) {
  #side-form-left {
    width: 20rem;
    float: left;
    position: relative;
    margin-top: 5%;
  }
}

@media (min-width: 1001px) {
  #side-form-right {
    width: 24rem;
    float: left;
    padding-top: 3%;
    position: relative;
  }
}

/* <<<<<<< END RESPONSIVE >>>>>>> */

              
            
!

JS

              
                
              
            
!
999px

Console