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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              <form action="" id="contact-form" method="post">
        <fieldset>
            <legend>Formularz kontaktowy</legend>
            <div class="item">
                <input required type="text" name="firstName" id="firstName" title="Proszę podać swoje imię">
                <label for="firstName">Imię<em>*</em></label>                
            </div>
            <div class="item">
                <input required type="text" name="secondName" id="secondName" title="Proszę podać swoje nazwisko">
                <label for="secondName">Nazwisko<em>*</em></label>                
            </div>
            <div class="item">
                <input required type="email" name="email" id="email" title="Proszę podać swój adres e-mail">
                <label for="email">Email<em>*</em></label>                
            </div>
            <div class="item">
                <textarea required rows="10" cols="20" name="message" id="message" title="Wpisz treść swojej wiadomości"></textarea>
                <label for="message">Wiadomość<em>*</em></label>                
            </div>
            <input type="submit" class="send-button">          
        </fieldset>
    </form>
            
          
!

CSS

            
                      #contact-form {
            margin: auto;
            width: 400px;
            max-width: 100%;
        }
        
        #contact-form legend {
            font-size: 24px;
        }
        
        #contact-form em {
            color: red;
        }
      
        #contact-form .item {
            position: relative;
            margin: 28px 0;
        }
        
        #contact-form input, #contact-form textarea {
            padding: 10px 35px;
            width: 100%;
            font-size: 20px;
            background: #efefef;
            border: none;
            box-sizing: border-box;
        }
        
        #contact-form label {
            opacity: 0.3;
            position: absolute;
            bottom: 0px;
            left: 5px;
            transition: 1s all;
            font-size: 20px;
            line-height: 40px;
        }
        
        #contact-form input:focus, #contact-form textarea:focus {
            border: 1px solid #666;
        }
        
        #contact-form input:focus + label, #contact-form input:valid + label {
            bottom: 40px;
            font-size: 16px;
            opacity: 0.7;
        }
        
        #contact-form input:valid {
            background-image: url('https://cdn0.iconfinder.com/data/icons/small-n-flat/24/678134-sign-check-128.png');
            background-repeat: no-repeat;
            background-size: 25px;
            background-position: 1% 50%;
            border: 2px solid #16FF84;
        }
        
        #contact-form textarea + label {
            top: 0;
        }
        
        #contact-form textarea:focus + label, #contact-form textarea:valid + label {
            top: -32px;
            font-size: 16px;
            opacity: 0.7;
        }
        
        #contact-form textarea:valid {
            border: 2px solid #16FF84;
        }
        
        #contact-form input[type="submit"] {
            border: none;
            background-image: none;
            background-color: #228822;
            color: #fff;
        }
        
        #contact-form input[type="submit"]:hover {
            cursor: pointer;
            background-color: #226622;
        }
            
          
!

JS

            
              
            
          
!
999px

Console