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

Auto Save

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

              
                <html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1;">
    <title>Checkout</title>
    <link rel="stylesheet" href="style.css">
    <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
</head>
<body>
    <div class="container">
        <div class="product-view">
            <img src="https://mauijim.scene7.com/is/image/mauijim/746-02MR-01?$config1098$">
        </div>
        
        <form>
            <h1>Payment</h1>
            <div class="card-info">
                <div class="form-group">    
                    <label>
                        Card number
                    </label>
                     <input type="text" value="3029 4580 9441 8223">
                    <label>
                        MM/YY
                    </label>
                     <input type="date">
                    <label>
                        CVC Code
                    </label>
                     <input type="text">
                    <button><a href="#">Checkout</a></button>
                </div>
                
            </div>
        </form>
    
    </div>
</body>
</html>
              
            
!

CSS

              
                *{
    font-family: 'Lato', sans-serif;
}

input,h1,label{color:white;}



html{
    box-sizing:border-box;
}

body{
    font-size:100%;
    width:100vw;
    height:100vh;
    background-color:#5E5E5E;
}

.container{
    display:flex;
    flex-direction:column;
    width:70vw;
    height:60vh;
    background-color:#6a7b90;
    margin:0 auto;
    border-radius:30px;
}

.product-view{
    width:70vw;
    height:50vh;
    background-color:#6a7b90;
    margin:0 auto;  
    flex:1;
    border-radius:30px 30px 0px 0px;
}

form{
    width:70vw;
    height:60vh;
    background-color:#2B3643;
    margin:0 auto;  
    flex:2;
    border-radius:0px 0px 30px 30px;
}

input{
    display:block;
    margin:5px 20px 20px 20px;
    background-color:transparent;
    border-style:none;
    border-bottom-style:solid;
    border-bottom-color:#5E5E5E;
    border-bottom-width:1px;
}

.card-info label{
    margin-right:80px;
    
}

.form-group{
    display:flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top:1rem;
}

label{
    margin:0px 20px;
}

h1{
    margin:10px 20px;
    
}

img{
    width:inherit;
    border-radius:30px 30px 0px 0px;

}

button{
    
    background: #90836A;
    text-align: center;
    border-style:none;
    height:50px;
    color:white;
    font-size:1rem;    
}

a{
    text-decoration:none;
    color:white;
    font-size:1rem;
}
              
            
!

JS

              
                
              
            
!
999px

Console