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

              
                <dl class="qanda">
 <dt><span>ここに質問を入力</span></dt><!-- 質問 -->
 <dd><p>ここに回答を入力</p></dd><!-- 回答 -->
</dl>
              
            
!

CSS

              
                /*Q&A style.css 2811-2972行目
==================================================================================================*/

.qanda {
    width: 95%;
    margin: 10px;
    padding: 0px 10px;
    border: 1px solid #e2e2e2;
    background: #fff;
    line-height: 1.7;
    margin-left: auto;
    margin-right: auto;
}

.qanda dt span {
    display: table-cell;
    vertical-align: middle;
    text-align: left;
    font-size: 18px;
}

dd p {
    font-weight: 500;
    font-size: 16px;
    text-align: left;
    line-height: 1.75em;
}

.qanda dt {
    position: relative;
    display: table;
    width: 91%;
    min-height: 76px;
    padding: 5px 10px 10px 80px;
    border-bottom: 1px solid #efefec;
    font-weight: 600;
    margin: 0;
}

.qanda dt:before {
    position: absolute;
    top: 10px;
    left: 0;
    display: block;
    width: 55px;
    height: 55px;
    content: "Q";
    text-align: center;
    color: #fff;
    border: 4px solid #eeeeee;
    border-radius: 33px;
    background: #ff9800;
    font-family: RexBold, Open Sans, Noto Sans Japanese, 游ゴシック体, Yu Gothic, YuGothic, ヒラギノ角ゴ ProN W3, Hiragino Kaku Gothic ProN, メイリオ, Meiryo, sans-serif;
    font-size: 40px;
    font-size: 32px;
    line-height: 56px;
}

.qanda dd {
    position: relative;
    display: table;
    min-height: 76px;
    padding: 10px 10px 0px 60px;
    margin-left: 0;
}

.qanda dd:before {
    position: absolute;
    top: 5px;
    left: 0;
    display: block;
    width: 55px;
    height: 55px;
    content: "A";
    text-align: center;
    color: #ff5600;
    border: 4px solid #eeeeee;
    border-radius: 33px;
    font-family: RexBold, Open Sans, Noto Sans Japanese, 游ゴシック体, Yu Gothic, YuGothic, ヒラギノ角ゴ ProN W3, Hiragino Kaku Gothic ProN, メイリオ, Meiryo, sans-serif;
    font-size: 40px;
    font-size: 32px;
    line-height: 56px;
    background-color: #fff7e0;
}

@media (max-width: 763px) {
    .qanda {
        width: 88%;
        margin: 10px;
        padding: 0px 10px;
        border: 1px solid #e2e2e2;
        background: #fff;
        line-height: 1.7;
        margin-left: auto;
        margin-right: auto;
    }

    .qanda dt {
        position: relative;
        display: table;
        width: 83%;
        padding: 12px 10px 10px 48px;
        border-bottom: 1px solid #efefec;
        font-weight: 600;
        margin: 8px 0;
        font-size: 16px;
        min-height: auto;
    }

    .qanda dt:before {
        position: absolute;
        top: 2px;
        left: 0;
        display: block;
        width: 35px;
        height: 35px;
        content: "Q";
        text-align: center;
        color: #fff;
        border: 3px solid #eeeeee;
        border-radius: 33px;
        background: #ff9800;
        font-family: RexBold, Open Sans, Noto Sans Japanese, 游ゴシック体, Yu Gothic, YuGothic, ヒラギノ角ゴ ProN W3, Hiragino Kaku Gothic ProN, メイリオ, Meiryo, sans-serif;
        font-size: 18px;
        line-height: 35px;
    }

    .qanda dt span {
        display: table-cell;
        vertical-align: middle;
        text-align: left;
        font-size: 16px;
    }

    .qanda dd {
        position: relative;
        display: table;
        min-height: 76px;
        padding: 10px 10px 0px 50px;
    }

    .qanda dd:before {
        position: absolute;
        top: 5px;
        left: 0px;
        display: block;
        width: 35px;
        height: 35px;
        content: "A";
        text-align: center;
        color: #ff5600;
        border: 4px solid #eeeeee;
        border-radius: 33px;
        font-family: RexBold, Open Sans, Noto Sans Japanese, 游ゴシック体, Yu Gothic, YuGothic, ヒラギノ角ゴ ProN W3, Hiragino Kaku Gothic ProN, メイリオ, Meiryo, sans-serif;
        font-size: 40px;
        font-size: 24px;
        line-height: 36px;
        background-color: #fff7e0;
    }

    .qanda dd p {
        padding: 0;
        margin: 0px 0 16px 0;
    }
}

              
            
!

JS

              
                
              
            
!
999px

Console