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

              
                    <body>
        <div class="center">
            <div class="page">
                <h1>Mina Mounir</h1>
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Consectetur purus ut faucibus pulvinar elementum integer enim neque. Semper eget duis at tellus at urna condimentum mattis. Ipsum nunc aliquet bibendum enim. Pellentesque massa placerat duis ultricies lacus. Sagittis id consectetur purus ut faucibus pulvinar elementum. Convallis tellus id interdum velit laoreet id donec ultrices tincidunt. Dignissim convallis aenean et tortor at risus viverra adipiscing.<br> <br>
                Suspendisse in est ante in nibh. Consectetur adipiscing elit ut aliquam purus sit amet luctus. Sed vulputate odio ut enim blandit volutpat maecenas volutpat. Eget nulla facilisi etiam dignissim diam quis. Velit euismod in pellentesque massa placerat duis ultricies. Tincidunt ornare massa eget egestas purus viverra accumsan. Purus viverra accumsan in nisl nisi scelerisque. A erat nam at lectus urna. Posuere ac ut consequat semper viverra. Montes nascetur ridiculus mus mauris vitae ultricies leo. Proin sed libero enim sed faucibus turpis in eu. Orci dapibus ultrices in iaculis nunc sed augue.
                </p>
            </div>
        </div>
    </body>
              
            
!

CSS

              
                body {
    margin: 0;
    padding: 0;
    font-family: verdana;
    background: #CCC
}

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.page {
    width: 400px;
    height: 600px;
    padding: 30px;
    background: #FFF;
    border-left: 30px solid #FF2929;
    transform: rotate(-45deg) skewX(10deg) scale(.8);
    box-shadow: -50px 50px 50px rgba(0, 0, 0, 0.5)
}

.page h1 {
    margin: 0 0 20px 0;
    padding: 0;
    text-align: center;
    font-size: 25px;
    color: #9e9e9e
}

.page p {
    margin: 0;
    padding: 0;
    text-align: justify
}

.page:before {
    content: "";
    width: 30px;
    height: 100%;
    background: #8a0e0e;
    position: absolute;
    top: 0;
    left: 0;
    transform: skewY(-45deg) translate(-57px, -43px) 
}

.page:after {
    content: "";
    width: 106%;
    height: 30px;
    background: #CCC;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: skewX(-45deg) translate(-11px, 30px) 
}
              
            
!

JS

              
                
              
            
!
999px

Console