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

              
                <div class="erabarerubox">
<h2 class="erh2">〇〇〇〇が選ばれる理由</h2>
                                <div class="cb">
                                    <ol>
                                        <li>選ばれる理由が入ります。他店との差別化ポイントです。</li>
                                        <li>選ばれる理由が入ります。他店との差別化ポイントです。</li>
                                        <li>選ばれる理由が入ります。他店との差別化ポイントです。</li>
                                        <li>選ばれる理由が入ります。他店との差別化ポイントです。</li>
                                        <li>選ばれる理由が入ります。他店との差別化ポイントです。</li>
                                    </ol>
                                </div>
                            </div>

              
            
!

CSS

              
                /*選ばれるボックス 2561-2687行目 
==================================================================================================*/
.erh2 {
    margin: 16px 0 0;
}

.inner .erabarerubox ol {
    counter-reset: number;
    /*数字をリセット*/
    list-style-type: none !important;
    /*数字を一旦消す*/
    padding: 0.3em 0.8em;
}

@media (max-width: 763px) {
    .inner .erabarerubox ol {
        counter-reset: number;
        list-style-type: none !important;
        padding: 0.3em 0.8em;
        margin: 0 0 8px;
    }
}

.inner .erabarerubox ol li {
    border-bottom: dashed 1px #fcd69e;
    position: relative;
    padding: 0.5em 0.5em 0.5em 30px;
    line-height: 1.5em;
    width: 100%;
    max-width: 860px;
    font-size: 20px;
    margin: 0 auto;
}

.inner .erabarerubox ol li:before {
    /* 以下数字をつける */
    position: absolute;
    counter-increment: number;
    content: counter(number);
    /*数字のデザイン変える*/
    display: inline-block;
    background: #ff9800;
    color: white;
    font-family: 'Avenir', 'Arial Black', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 15px;
    border-radius: 50%;
    left: 0;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    /*以下 上下中央寄せのため*/
    top: 50%;
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

@media (max-width: 763px) {
    .inner .erabarerubox ol li {
        border-bottom: dashed 1px #fcd69e;
        position: relative;
        padding: 0.5em 0 0 25px;
        line-height: 1.5em;
        width: 92%;
        max-width: 829px;
        font-size: 16px;
        margin: 0 auto;
    }

    .inner .erabarerubox ol li:before {
        position: absolute;
        counter-increment: number;
        content: counter(number);
        display: inline-block;
        background: #ff9800;
        color: white;
        font-family: 'Avenir', 'Arial Black', 'Arial', sans-serif;
        font-weight: bold;
        font-size: 15px;
        border-radius: 50%;
        left: -6px;
        width: 25px;
        height: 25px;
        line-height: 25px;
        text-align: center;
        top: 20px;
        -moz-transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        -o-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
    }

}

.inner .erabarerubox ol li:last-of-type {
    border-bottom: none;
    /*最後のliの線だけ消す*/
}


.erabarerubox {
    border-width: 5px;
    border-radius: 5px;
    border-style: solid;
    border-color: #fcd69e;
    width: 90%;
    height: auto;
    background-image: url(image/erabareruBg.gif);
    background-repeat: repeat;
    font-weight: 500;
    padding: 8px 16px;
    margin: 0px auto 32px;
}


@media (max-width: 763px) {
    .erabarerubox {
        margin: 0em 0;
        margin-left: auto;
        margin-right: auto;
        width: 90%;
        padding: 0 0px;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console