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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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="blog-card">
  <div class="hbc-link-wrap">
    <a class="hbc-link" href="https://hinastory.github.io/cats-cats-cats/2019/12/29/visualize_ruby_development_by_file/">
      <div class="hbc-card">
        <div class="hbc-info">
          <img class="hbc-favicon" src="http://favicon.hatena.ne.jp/?url=https://hinastory.github.io/cats-cats-cats/2019/12/29/visualize_ruby_development_by_file/">               </img>
          <div class="hbc-site-name">cats cats cats</div>
        </div>
        <div class="hbc-contents">
          <div class="hbc-thumbnail">
            <img src="https://hinastory.github.io/cats-cats-cats/gallery/events/advent-calendar-2019/ruby-viz-file.png"></img>
          </div>
          <div class="hbc-text">
            <div class="hbc-title">【続】Rubyの22年に渡るコミットの歴史を可視化してみた(ファイル編)</div>
            <div class="hbc-url">https://hinastory.github.io/cats-cats-cats/2019/12/29/visualize_ruby_development_by_file/</div>
            <div class="hbc-description">この記事はRuby Advent Calendar 2019の19日目の記事です。(19日目が投稿されなかったので代理投稿します。)</div>
          </div>
        </div>
      </div>  
    </a>
  </div>
</div>

              
            
!

CSS

              
                img
  hight: auto
  max-width: 100%
.blog-card
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 4px;
    margin-right: 16px;
    .hbc-link-wrap
        position: relative;
        margin: 0;
        padding: 0;
        box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.8);
        max-width: 500px;
        border: 1px solid #888888;
        background-color: #ffffff;
        .hbc-link
            text-decoration: none !important;
            .hbc-card
                margin-top: 7px;
                margin-right: 7px;
                margin-bottom: 4px;
                margin-left: 7px;
                box-sizing: inherit;
                .hbc-info
                    padding: 0;
                    color: #222222;
                    font-size: 12px;
                    white-space: nowrap;
                    overflow: hidden;
                    display: block !important;
                    .hbc-favicon
                        height: 16px;
                        width: 16px;
                        margin: 0 4px !important;
                        border: none;
                        vertical-align: bottom;
                        display: inline !important;
                    .hbc-site-name
                        margin: 0 0 0 6px;
                        color: #222222;
                        font-size: 12px;
                        line-height: 12px;
                        text-decoration: none;
                        display: inline !important;
                .hbc-contents
                    height: 114px;
                    margin: 6px 0 0 0;
                    word-break: break-all;
                    white-space: normal;
                    overflow: hidden;
                    display: flex;
                    .hbc-thumbnail
                        max-width: 100px;
                        min-width: 100px;
                        max-height: 108px;
                        padding: 0;
                        margin: 0 6px 4px 4px;
                    .hbc-text
                        flex: 1;
                    .hbc-title
                        color: #111111;
                        font-size: 16px;
                        line-height: 24px;
                        font-weight: bold;
                        overflow: hidden;
                        word-break: break-all;
                    .hbc-url
                        color: #4466ff;
                        font-size: 10px;
                        font-weight: normal;
                        overflow: hidden;
                        display: block;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                        font-style: italic;
                    .hbc-description
                        margin: 0;
                        color: #333333;
                        font-size: 11px;
                        line-height: 17px;
                        padding: 0;
                        overflow: hidden;

              
            
!

JS

              
                
              
            
!
999px

Console