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.

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 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

              
                <div class="letter">
    <div class="letter-paper">
        <p>若逢新雪初霁,<br> 满月当空,<br>下面平铺着皓影,<br>上面流转着亮银,<br>而你带笑的向我步来,<br>月色与雪色之间,你是第三种绝色。</p>
    </div>
    <div class="envelope"></div>
</div>
              
            
!

CSS

              
                .letter{
    position: relative;
    width: 380px;
    height: 450px;
    margin: 100px auto;
    &:before{
    position: absolute;
    width: 100%;
    bottom: 85px;
    height: 242px;
    background-image: conic-gradient(at 50% 0px, transparent 122deg, #f8efe7 123deg 238deg, transparent 235deg);
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5));
    content: '';
    }
}
.letter-paper{
    position: relative;
    padding: 5px 0 0 35px;
    width: 350px;
    height: 400px;
    margin: 0 auto;
    font-size: 18px;
    font-family: 'STXingkai','KaiTi';
    line-height: 40px;
    background-image: 
    repeating-linear-gradient(transparent 0 39px, #999 39px 40px,transparent 40px),
    linear-gradient(#eee,#edecee);
    background-repeat: no-repeat;
    background-size: 80% 100%,100%;
    background-position: center 20px,0 0;
    box-shadow: 0 0 5px 2px rgba(0,0,0,.2);
    box-sizing: border-box;;
}
.envelope{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 210px;
    background-image: repeating-linear-gradient(45deg,transparent 0 10px,#d82b45 10px 20px,transparent 20px 30px,#2f8192 30px 40px),repeating-linear-gradient(-45deg,transparent 0 10px,#d82b45 10px 20px,transparent 20px 30px,#2f8192 30px 40px),conic-gradient(transparent 61deg, #f8efe7 61deg 299deg, transparent 299deg);
    background-size: 12px 100%, 12px 100%,100% 100%;
    background-repeat: no-repeat;
    background-position: 0 -8px, right -8px,0 0;
    filter: drop-shadow(0 0 5px rgba(0,0,0,.2));
    &:after{
        position: absolute;
        width: 100%;
        height: 300px;
        bottom: 0;
        left: 0;
        background-image: repeating-linear-gradient(-45deg, transparent 0 10px, #d82b45 10px 20px, transparent 20px 30px, #2f8192 30px 40px), conic-gradient(transparent 125deg, #f8efe7 126deg 234deg, transparent 235deg);
        background-repeat: no-repeat;
        background-size: 105% 12px,100%;
        background-position: -9px bottom,0 0;
        content: '';
        filter: drop-shadow(0 0 5px rgba(0,0,0,.2));
    }
    
}
              
            
!

JS

              
                
              
            
!
999px

Console