<div class="form-container">
  <form>
    <label class="form-row">
       <span class="label-text">A field</span>
       <input class="text-input" type="text" placeholder="a field" />
    </label>
    
    <label class="form-row">
       <span class="label-text">Another field</span>
       <input class="text-input" type="text" placeholder="another field" />
    </label>
    
    <label class="form-row">
       <input type="radio" name="group" />
       <span>A radio selection</span>
    </label>
    <label class="form-row">
       <input type="radio" name="group" />
       <span>A different one</span>
    </label>

    <input type="submit" class="button" />
  </form>
</div>
* {
  box-sizing: border-box;
}

body {
  display: flex;
  font-family: 'Arial', 'san-serif';
  justify-content: space-around;
}

.form-container {
  border: 1px solid grey;
  padding: 1em;
  max-width: 25em;
  width: 40%;
}

.form-row {
  display: block;
  margin-top: 1em;
}

.label-text {
  display: block;
}

.text-input {
  font-size: 1em;
  margin-top: .25em;
  padding: .5em;
  width: 100%;
}

.button {
  border: none;
  display: block;
  font-size: 1.1em;
  margin: 1em 0 0;
  padding: .5em;
  width: 100%;
}
  gremlins           // Yo, Gremlins
    .createHorde()   // Create me a default horde
    .unleash();      // Then immediately release them
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.