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 class="container">

  <header class="header">
    <h1 id="title" class="text-center">IT Junior Salvează</h1>
    <p id="description" class="description text-center">
      Mulțumim că ați ales să salvați vieți prin platforma noastră
    </p>
  </header>
  
  <form id="survey-form">
  
    <div class="form-group">
      <label id="name-label" for="name">Nume</label>
      <input type="text" name="name" id="name" class="form-control" placeholder="Introdu numele" required />
    </div>
	
    <div class="form-group">
      <label id="email-label" for="email">Email</label>
      <input type="email" name="email" id="email" class="form-control" placeholder="Indrodu Email" required />
    </div>
	
    <div class="form-group">
      <label id="number-label" for="number">Vârstă<span class="clue">( obligatoriu peste 18 ani )</span></label>
      <input type="number" name="age" id="number" min="18" max="110" class="form-control" placeholder="Vârstă" />
    </div>
	
    <div class="form-group">
      <p>Sex?</p>
      <select id="dropdown" name="role" class="form-control" required>
        <option disabled selected value>Selectează sexul</option>
        <option value="masculin">Masculin</option>
        <option value="feminin">Feminin</option>
        <option value="nu">Aleg sa nu spun</option>
      </select>
    </div>

    <div class="form-group">
	
      <p>Metoda de plată</p>
	  
      <label>
        <input name="plata" value="card-bancar" type="radio" class="input-radio" checked />Card bancar
	  </label>
	  
      <label>
        <input name="plata" value="card-revolut" type="radio" class="input-radio" />Card Revolut
	  </label>
	  
      <label>
	    <input name="plata" value="paypal" type="radio" class="input-radio" />PayPal
	  </label>
	  
    </div>

    <div class="form-group">
      <p>
        Suma (EUR) <span class="clue">(suma se va împărți egal catre numărul de carități selectate)</span>
      </p>
      <input type="number" name="age" id="number" class="form-control" placeholder="Suma pe care doriți să o donați" />
    </div>

    <div class="form-group">
      <p>
        Alege grupurile de caritate unde vrei să donezi:  
      </p>

	  <label>
		<input name="prefer" value="united-way" type="checkbox" class="input-checkbox" />
		<a target = "_blank" href = "https://www.unitedway.org/#">United Way Worldwide</a>
	  </label>
	 
      <label>
		<input name="prefer" value="task-force" type="checkbox" class="input-checkbox" />
		<a target = "_blank" href = "https://taskforce.org/">Task Force for Global Health</a>
	  </label>
	  
	  <label>
		<input name="prefer" value="salvation-army" type="checkbox" class="input-checkbox" />
		<a target = "_blank" href = "https://www.salvationarmy.org/">Salvation Army</a>
	  </label>
	  
	  <label>
		<input name="prefer" value="direct-relief" type="checkbox" class="input-checkbox" />
		<a target = "_blank" href = "https://www.directrelief.org/">Direct Relief</a>
	  </label>
	  
	  <label>
		<input name="prefer" value="habitat-humanity" type="checkbox" class="input-checkbox" />
		<a target = "_blank" href = "https://www.habitat.org/emea">Habitat for Humanity</a>
	  </label>
	  
    </div>

    <div class="form-group">
      <p>Comentarii si sugestii:</p>
      <textarea id="comments" class="input-textarea" name="comment" placeholder="Introdu comentariul tau aici..."></textarea>
    </div>

    <div class="form-group">
      <button type="submit" id="submit" class="submit-button">
        Dute catre plată!
      </button>
    </div>
	
  </form>
</div>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css?family=Poppins:200i,400&display=swap");

:root {
  --color-black: #000000;
  --color-darkblue: #c2d6d6;
  --color-darkblue-alpha: rgba(0, 204, 0, 0.8);
  --color-green: #37af65;
}


body {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-black);
  margin: 0;
}

/* mobile friendly alternative to using background-attachment: fixed */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  background-image: linear-gradient(
      rgba(117, 163, 163, 0.8),
      rgba(224, 235, 235, 0.7)
    ),
    url(https://images.everydayhealth.com/homepage/health-topics-2.jpg?sfvrsn=757370ae_2);
  background-size: cover;
  background-position: center;
}

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;
}

button {
  border: none;
}

.container {
  width: 100%;
  margin: 3.125rem auto 0 auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

.header {
  padding: 0 0.625rem;
  margin-bottom: 1.875rem;
}

.description {
  font-style: italic;
  font-weight: 200;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}

.clue {
  margin-left: 0.25rem;
  font-size: 0.9rem;
  color: #e4e4e4;
}

.text-center {
  text-align: center;
}

/* form */

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

@media (min-width: 480px) {
  form {
    padding: 2.5rem;
  }
}

.form-group {
  margin: 0 auto 1.25rem auto;
  padding: 0.25rem;
}

.form-control {
  display: block;
  width: 100%;
  height: 2.375rem;
  padding: 0.375rem 0.75rem;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  
}

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

.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: 100%;
  padding: 0.625rem;
  resize: vertical;
}

.submit-button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--color-green);
  color: inherit;
  border-radius: 2px;
  cursor: pointer;
}
a{
  text-decoration: none;
  color: black;
}
a:hover {
  color: red;
}
              
            
!

JS

              
                
              
            
!
999px

Console