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="item_box clear_fix" style="position: relative; padding: 1em 1em .5em; margin: 2em 0; border: solid 0.5px #444; border-radius: 5px; background: #fff;"><span style="position: absolute; display: inline-block; top: -12px; left: 13px; padding: 0px 8px; height: 25px; line-height: 25px; font-size: 14px; font-weight: bold; background: #fff;">\check/</span>
<p style="margin: 0; padding: 0; float: left;"><img src="画像URL" alt="" width="120" height="80" />
<strong style="font-size: 14px;">記事タイトル</strong></p>
<a href="記事URL">記事へリンク</a>
<div style="background: #444; color: #fff; font-size: 12px; width: 100px; height: 30; float: right;">  続きを読む</div>
<div> </div>
</div>
<p> </p>
              
            
!

CSS

              
                .item_box {
    transition: .3s; /*変化するまでの時間*/
}
.item_box:hover{	
    transform: translateY(-4px); /*上に4px移動*/
    box-shadow: 0 4px 4px rgba(0,0,0,.2); /*影の距離 ぼかし幅 色*/
    background-color:#FFF;
    filter:alpha(opacity=50);
    -moz-opacity: 0.5;
    opacity: 0.5;
}
.item_box{
    position:relative;
    width:100%;
    padding:5%;
    border:solid 1px #CCC;
    margin-bottom:20px;
}
.item_box a{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    text-indent:-999px;
}
.item_box img{
    display:block;
    width:35%;
    float:left;
}
.item_box .detail{
    width:60%;
    margin-left:5%;
    float:left;
}
/* floatによる回り込みをクリア */
.clearfix:after {
    display:block;
    clear:both;
    height:0px;
    visibility:hidden;
    content:".";
}
.clearfix {
    min-height: 1px; /*IE6、7対策*/
}
              
            
!

JS

              
                
              
            
!
999px

Console