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

              
                <!DOCTYPE html>
<html>
  <head>
    
    <link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" 
    rel="stylesheet"
    >
    
    <title>Page Title</title>
 <style>

  body {

        background-image: url("https://images.pexels.com/photos/169573/pexels-photo-169573.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        height: 100%;

        
        font-family: 'Lato', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.5;
        color: LightSeaGreen;
    }
      
      
      

      h1 {
      font-weight: 400;
      line-height: 1.2;
    }

    p {
      font-size: 1.125rem;
    }

    h1,
    p {
      margin-top: 0;
      margin-bottom: 0.5rem;
    }

    label {
      display: flex;
      align-items: center;
      font-size: 1.125rem;
      margin-bottom: 0.5rem;
    }

   input,
    button,
    select,
    textarea {
      margin: 0;
      font-family: inherit;
      font-size: inherit;
      line-height: inherit;
    }  

    .centar {
     margin-left: 500px;
     display: table; /* keep the background color wrapped tight */
    margin: 0px auto 0px auto; /* keep the table centered */
    padding:20px;
    font-size:20px;
    background: rgb(80, 72, 72); /* Fallback for older browsers without RGBA-support */
    background: rgba(48, 38, 38, 0.5);
    border-radius: 12px;
     
    }

    .pod-naslov {
      font-style: italic;
      font-weight: lighter;
      text-align: center;
      color: white;
    }

    .naslov {
      font-size: 50px;
      text-align: center;
      color: white;
    }

    .form-control {
      display: block;
      width: 75%;
      height: 3rem;
      padding: 0.375rem 0.75rem;
      color: #000000;
      background-color: AliceBlue;
      background-clip: padding-box;
      border: 2px solid #ced4da;
      border-radius: 0.25rem;
      transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }

    .form-control:focus {
      border-color: darkblue;
      outline: 0;
      box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    form {
      background: var(--color-darkblue-alpha);
      padding: 2.5rem 0.625rem;
      border-radius: 0.25rem;
    }

    @media (min-width: 480px) {
      form {
        padding: 2.5rem;
      }
    }
    
    .input-radio,
    .input-checkbox {
      display: inline-block;
      margin-right: 0.625rem;
      min-height: 1.25rem;
      min-width: 1.25rem;
    }

    .input-textarea {
      min-height: 120px;
      width: 85%;
      padding: 1rem;
      resize: vertical;
      border-color: darkblue;
    }

    .submit-button {
      display: block;
      width: 100%;
      padding: 1rem;
      margin-top: 7px;
      background: DimGray;
      color: black;
      border-radius: 2px;
      cursor: pointer;
    }


</style>
  </head>
  <body>
    
 <div class="background-image"></div>
<div class="text">
<h1 class="naslov">Slavko's survey-form</h1>

<p class="pod-naslov">Thank you for taking the time to answer my questions!</p>

<form>
  <div class="centar">
  <div class="form-group">
        <label for="name">Name</label>
        <input
            type="text"
            name="name"
            placeholder="Enter your name"
            class="form-control"
            required
            />
  </div>

    <div>
        <label for="email">Email</label>
        <input 
          type="email"
          name="email"
          placeholder="Enter your Email"
          class="form-control"
          required/>
    </div>

    <div>
        <label for="number">Age<span>(optional)</span></label>
        <input type="number" name="age" min="10" max="90" placeholder="Age" class="form-control"/>
        
    <div>
        <p>Which option best describes your current role?</p>
        <select id="dropdown" name="role" required class="form-control">
            <option disabled selected value>Select current role</option>
            <option value="student">Student</option>
            <option value="job">Full Time Job</option>
            <option value="learner">Full Time Learner</option>
            <option value="preferNo">Prefer not to say</option>
            <option value="other">Other</option>
        </select>
    </div>

    <div>
        <p>Which programming language should you learn first in 2020</p>
        <Label>
            <input name="user-recommend" value="python" type="radio" checked class="input-radio"/>Python 
        </Label>
        <label>
            <input name="user-recommend" value="javascript" type="radio" class="input-radio"/>JavaScript
        </label>
        <label>
            <input name="user-recommend" value="java" type="radio" class="input-radio"/>Java
        </label>
    </div>

    <div>
        <p>Why did you start learning coding?</p>
        <select id="why-start" name="whystart" required class="form-control">
        <option disabled selected value>Select an option</option>
        <option value="money">Because its a well paid job</option>
        <option value="because">Because i see my self enjoying that tipe of work.</option>
      </select>     
      </div>

      <div class="form-group">
        <p>
          What would you like to see improved?
          <span class="clue">(Check all that apply)</span>
        </p>

      <div>
        <p>What kinde of porgramer do you intend to become?</p>
        <label>
         <input name="prefer" value="system" type="checkbox" class="input-checkbox">System programer
         </label>
      </div> 

      <div>
        <label>
          <input name="prefer" value="web" type="checkbox" class="input-checkbox">Web programer
        </label>
      </div>

      <div>
        <label>
          <input name="prefer" value="game" type="checkbox" class="input-checkbox">Game programer
        </label>
      </div>

      <div>
        <label>
          <input name="prefer" value="application" type="checkbox" class="input-checkbox">Application programer
        </label>
      </div>
      
      <div>
        <p>You can write a short version of your journey as a developer here,<br> am sure it will be usefull!</br></p>
        <textarea
          id="comments"
          name="comment"
          placeholder="Write your story here"
          class="input-textarea"
        ></textarea>
       </div>

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



    </header>
  </body>
</html>

              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console