Last active
June 9, 2017 02:25
-
-
Save yuririn/71c9ddb723ea62ad68e56f027bc89d52 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* css */ | |
.numbering { | |
margin: 0; | |
counter-reset: number; | |
} | |
.numbering h2::before { | |
counter-increment: number; | |
content: counter(number); | |
padding-right: 5px; | |
} | |
<!-- html --> | |
<section class="numbering"> | |
<h1>大見出し</h1> | |
<h2>中見出し</h2> | |
<p>本文です本文です本文です本文です本文です本文です本文です本文です本文です本文です</p> | |
<h2>中見出し</h2> | |
<p>本文です本文です本文です本文です本文です本文です本文です本文です本文です本文です</p> | |
<h2>中見出し</h2> | |
<p>本文です本文です本文です本文です本文です本文です本文です本文です本文です本文です</p> | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment