cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <form id="kundenRegistrierung" action="#" method="post">
  ...

  <fieldset aria-expanded="true" class="offen">
    <legend>Gewünschter Versicherungsschutz</legend>

    <div class="angabe mitHilfe">
      <span class="label">
        <label for="versicherungsbeginn" aria-describedby="versicherungsbeginn_hilfe"><span class="versteckt">Erforderliche Angabe</span>
        Versicherungsbeginn <span class="pflichtfeld">*</span><br/>
          <span class="formatvorgabe">(tt.mm.jjjj)</span>
        </label>
      </span>
      <div class="steuerelement">
        <a id="versicherungsbeginn_hilfe" class="hilfe" href="#versicherungsbeginn">Bitte berücksichtigen Sie die Kündigungsfrist bei Ihrer aktuellen Versicherung.</a>

        <input id="versicherungsbeginn" name="versicherungsbeginn_wert" type="date" class="datumsangabe" aria-required="true" aria-describedby="versicherungsbeginn_hilfe" required />
      </div>
    </div>

    <input type="submit" value="Testen" />
  </fieldset>
</form>
            
          
!
            
              
/* Basisformatierungen */
fieldset {
  margin: 1em 0;
}
legend {
  font-weight: bold;
}
div.angabe {
  margin: .5em 0;
}
input[type="text"],
input[type="date"],
input[type="email"],
input[type="number"],
select {
  width: 95%;
}
span.label label {
  font-weight: bold;
}
span.label label span {
  font-weight: normal;
}


/* Fokus */
input[type="text"],
input[type="date"],
input[type="email"],
input[type="number"],
textarea,
select {
  background: #ddd;
}
input[type="text"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="submit"]:focus,
textarea:focus,
select:focus {
  color: #000;
  background: #fff;
}

/* Label hervorheben */
label:hover, label:focus {
  background-color: #ccc;
}

/* Pointer für klickbare Formularelemente */
label, select, button,
input[type=checkbox],
input[type=radio],
input[type=button],
input[type=submit] {
  cursor: pointer;
}


/* Pflichtfelder */
.versteckt {
  position: absolute; 
  overflow: hidden; 
  clip: rect(0 0 0 0); 
  height: 1px; width: 1px; 
  margin: -1px; padding: 0; border: 0; 
}


/* Hilfetexte */
a.hilfe {
  color: inherit;
  background-color: transparent;
  text-decoration: none;
  display: block;
  margin: 0 0 .3em;
}


/* Fehlermeldungen */
div.fehlermeldungen,
div.fehlermeldungen a,
a.fehlermeldung {
  color: red;
  text-decoration: none;
}
div.angabe.fehler a.fehlermeldung {
  display: block;
}
div.angabe.fehler input {
  border: 1px solid red;
}


/* ab 768px */
@media only screen and (min-width: 768px) {
  div.angabe {
    overflow: hidden;
  }
  span.label {
    width: 35%;
    float: left;
    text-align: right;
  }
  span.label span.formatvorgabe {
    display: block;
  }
  span.label span.pflichtfeld {
    margin-right: -1.7ex;
  }
  div.steuerelement {
    width: 63%;
    float: left;
    padding-left: 2%;
  }
}
            
          
!
999px
Loading ..................

Console