Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

              
                <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