Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ add another resource


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


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.


Auto Save

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.


                <meta name="viewport" content="width=device-width,initial-scale=1">
<main class="block-main">
<section class="block-overlay">
  <div class="block-overlay__inner">
      <li><a href="">アドベントカレンダー2017</a></li>
      <li><a href="">Gravit Designer</a></li>
      <li><a href="">Adobe XD</a></li>
      <li><a href="">バシャログ。10周年企画</a></li>
      <li><a href="">WebStorm/PhpStorm</a></li>
      <li><a href="">AWS</a></li>
      <li><a href="">Vagrant</a></li>
      <li><a href="">gulp</a></li>
      <li><a href="">スマホサイト制作</a></li>
      <li><a href="">Webデザイン</a></li>
      <li><a href="">Fireworks</a></li>
      <li><a href="">Photoshop</a></li>
      <li><a href="">HTML/CSS</a></li>
      <li><a href="">Dreamweaver</a></li>
      <li><a href="">JavaScript</a></li>
      <li><a href="">WordPress</a></li>
      <li><a href="">MovableType</a></li>
      <li><a href="">PHP</a></li>
      <li><a href="">CakePHP</a></li>
      <li><a href="">ソフトウェア設計</a></li>
      <li><a href="">DB/サーバ</a></li>
      <li><a href="">バージョン管理</a></li>
      <li><a href="">Web制作ツール</a></li>
      <li><a href="">Webサービス</a></li>
      <li><a href="">ディレクション</a></li>
      <li><a href="">SEO/SEM</a></li>
      <li><a href="">ソーシャルメディア</a></li>
      <li><a href="">ブラウザ/アドオン</a></li>
      <li><a href="">Apple関連</a></li>
      <li><a href="">書籍・セミナー</a></li>
      <li><a href="">オフィス系ツール</a></li>
      <li><a href="">お知らせ</a></li>
      <li><a href="">その他</a></li>
      <li><a href="">Craft CMS</a></li>
<aside class="block-ad">
  <p><a href="" target="_blank">[AD]横浜の技術情報ブログといえばバシャログ。</a></p>


                * {
  box-sizing: border-box;

html,body {
  margin: 0;
  padding: 0;

body {
  overflow: hidden;

.block-overlay {
  position: fixed;
  top: 0;
  left: 0;
  padding: 10px;
  width: 100%;
  background: rgba(#000, .8);
  overflow-y: scroll;
  h2 {
    color: #fff;
    text-align: center;
  ul {
    color: #fff;
  li {
    margin: 10px 0 0;
  a {
    color: #fff;

.block-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  background: rgba(#32a138, .8);
  p {
    margin: 0;
  a {
    color: #fff;


                $(window).on('load resize', function(){ //読み込みかリサイズしたとき
  $('.block-overlay').css('height', window.innerHeight - 50);