cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


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.

              <div class="dialog">
    <p>Пример рисованной рамки для онлайн-игры, для прозрачного фона (<a href="http://usabili.ru/news/2012/04/28/151.html">отсюда</a>).</p>
    <p>При наведении можно посмотреть, как выглядел бы блок без поддержки border-image</p>
              .dialog {
    font: 1em/1.5 sans-serif;
    color: #fff;
    width: 50%;
    min-height: 160px;
    min-width: 220px;
    margin: 50px auto;
    padding: 30px;  
    background: #1b2f4a;
    background-clip: padding-box;
    border: 6px double #860;
    border-image-source: url(http://usabili.ru/news_imgs/151/border7.png);
    border-image-slice: 120 100 140 fill;
    border-image-repeat: repeat stretch;    
    border-image-width: 120px 100px 140px; /* можно просто auto, эффект будет тот же */
    border-image-outset: 36px 30px 58px 28px;
    или сокращенно:
    border-image: url(http://usabili.ru/news_imgs/151/border7.png) 120 100 140 fill / auto / 36px 30px 58px 28px repeat stretch
    border-radius: 44px;
.dialog:hover {
    border-image: none;
a { color: #ff6; }
Loading ..................