← 静的パーツギャラリーへ戻る

パーツ番号 02-07-22 ・ CSSのみ

ノートブック風パンチ穴見出し

ノートの綴じ穴を模した丸ドットを縦に並べた見出し。学習系コンテンツやメモ風ブログの章見出しに合う。

staticcss

プレビュー

ソースコード

HTML

<div class="wrap">
          <div class="holes"><span></span><span></span><span></span></div>
          <h4 class="ttl">Notebook<br>学習メモ</h4>
        </div>

CSS

.d02-07-22 .wrap{ display:flex; align-items:center; gap:16px; background:#fef9c3; padding:18px 22px; border-radius:4px; }
        .d02-07-22 .holes{ display:flex; flex-direction:column; gap:14px; flex-shrink:0; }
        .d02-07-22 .holes span{ display:block; width:10px; height:10px; border-radius:50%; background:#fffbeb; border:1px solid #e5e7eb; }
        .d02-07-22 .ttl{ all:unset; font-size:18px; font-weight:800; color:#78350f; line-height:1.4; }

クラス名 .d02-07-22 は本ライブラリ内での識別用です。複数のパーツを同じページで使う場合は、重複しないよう名前を変更してください。