Pen Settings



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


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


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.


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.


                <form class="contact-form hidden" accept-charset="UTF-8" action="#" method="post">
<div class="feld"><input id="name" tabindex="1" name="name" pattern=".{6,256}" required="" type="text" autofocus="" placeholder="Max Musterfrau"> <label for="name">Name*</label>
<div class="requirements">Der Name scheint sehr kurz zu sein</div>
<div class="feld"><input id="telefon" tabindex="2" name="telefon" pattern="^[0-9-+\s()]{6,50}$" type="tel" placeholder="09876 54321"><label for="telefon">Telefon</label>
<div class="requirements">Bitte eine gültige Telefonnummer eingeben.</div>
<div class="feld"><input id="email" tabindex="3" name="email" pattern="[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,3}$" required="" type="email" placeholder=""><label for="email">E-Mail Adresse*</label>
<div class="requirements">Bitte eine gültige E-Mail-Adresse eingeben.</div>
<div class="hidden"><input id="edit-url" class="" name="url" type="text" placeholder="Überspringen, wenn Sie ein Mensch sind"></div>
<div><input id="subject" tabindex="5" name="subject" required="" type="text" placeholder="Ihr Thema"><label for="subject">Betreff*</label></div>
<div class="feld"><textarea id="message" style="height: 200px; width: 100%;" tabindex="6" maxlength="2048" name="message" required="" placeholder="Ihre Nachricht"></textarea><label for="message">Beschreiben Sie hier Ihr Anliegen* ...</label>
<div class="requirements">Bitte schreiben Sie hier Ihre Nachricht.</div>
<button class="form-submit" disabled="disabled" name="submit" type="submit">Absenden</button></form>


                /* Kontaktformular */

  max-width: 100%;

@media only screen and ( min-width: 500px ) {
  max-width: 75%;

form > div{
	margin-top: 0.1 em;
  margin-bottom: 1em;
  position: relative;
	background: white;
	border-bottom: 1px solid #ccc;

form > div > label, 
form > div > input,
form > div > textarea {
  transition: all 0.8s !important;
  touch-action: manipulation;

form > div > input:required+span::after {
  content: "*";

form > div > label{
	opacity: 1;
	font-weight: bold;
	position: absolute;
	top: -0.5em  ;
	left: 5px;

form > div > input,
form > div > textarea {
  width:100% !important;
	border: 0 !important;
	padding: 0.8em 0em 0.4em 0.2em !important;
	background: #f0f0f0 !important;	
  font-size:1.2rem !important;

form > div > input::placeholder,
form > div > textarea::placeholder {
  opacity: 0;
  transition: inherit;

form > div > input:focus::-webkit-input-placeholder,
form > div > textarea:focus::-webkit-input-placeholder {
  opacity: 1;

form > div > input:placeholder-shown + label,
form > div > textarea:placeholder-shown + label
  cursor: text;
  max-width: 66.66%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform-origin: left bottom;
  transform: translate(0, 2.125rem) scale(1);

form > div > input:not(:placeholder-shown) + label,
form > div > input:focus + label,
form > div > textarea:not(:placeholder-shown) + label,
form > div > textarea:focus + label
  transform: translate(0, 0) scale(1);
  cursor: pointer;

form > div > input:focus,
form > div > textarea:focus{
	outline: 0 !important;
	background: white !important;

form > div > input:focus:valid,
form > div > textarea:focus:valid
border-bottom: 2px solid green !important;

form > div > input:focus:invalid
border-bottom: 2px solid red !important;

form > div > input:invalid:not(:focus):not(:placeholder-shown) ~ .requirements,
form > div > textarea:invalid:not(:focus):not(:placeholder-shown) ~ .requirements {
	margin-top: 2px;
	max-height: 200px;
	padding: 5px 30px 5px 50px;
	border-top: 1px dashed #aaa;
	background-color: whitesmoke;

form > div .requirements {
	padding: 0px 30px 0 50px;
	color: #B51D28;
	max-height: 0;
	transition: 0.28s;
	overflow: hidden;
	/*font-style: italic;*/
	font-size: 0.8em;


/* Kontaktformular ENDE */



                'use strict';
// Contact form.
$(".contact-form").each(function () {
  var $contact_form = $(this);
  var $contact_button = $contact_form.find(".form-submit");
  var contact_action = "/publii_html/contact.php";

  // Display the hidden form.
  // Remove the "no javascript" messages

  // Wait for a mouse to move, indicating they are human.
  $("body").mousemove(function () {
    // Unlock the form.
    $contact_form.attr("action", contact_action);
    $contact_button.attr("disabled", false);

  // Wait for a touch move event, indicating that they are human.
  $("body").on("touchmove", function () {
    // Unlock the form.
    $contact_form.attr("action", contact_action);
    $contact_button.attr("disabled", false);

  // A tab or enter key pressed can also indicate they are human.
  $("body").keydown(function (e) {
    if (e.keyCode === 9 || e.keyCode === 13) {
      // Unlock the form.
      $contact_form.attr("action", contact_action);
      $contact_button.attr("disabled", false);

  // Mark the form as submitted.
  $ () {

  // Display messages.
  if ( !== "") {
    switch ( {
      case "submitted":
        window.setTimeout('window.location = ""',10);

      case "error":