Skip to content

Instantly share code, notes, and snippets.

@ZachMoreno
Created March 20, 2014 23:03
Show Gist options
  • Save ZachMoreno/9675916 to your computer and use it in GitHub Desktop.
Save ZachMoreno/9675916 to your computer and use it in GitHub Desktop.
Continue ordered list item numbering with CSS counter
ol.start {
counter-reset: mainSection;
}
ol.split {
list-style-type: none;
}
ol.split li:before {
counter-increment: mainSection;
content: counter(mainSection) ".\00A0\00A0";
}
ol.split li {
text-indent: -1.3em;
}
ol.split li ol {
counter-reset: subSection;
}
ol.split li ol li {
list-style-type: none;
}
ol.split li ol li:before {
counter-increment: subSection;
/*content: counter(mainSection) "." counter(subSection, lower-alpha) ".\00A0\00A0";*/
content: counter(subSection, lower-alpha) ".\00A0\00A0";
}
ol.split li ol li{
text-indent: -2.1em;
}
<ol class="split start">
<li>
<strong>CALL TO ORDER.</strong>
</li>
<li>
<strong>ROLL CALL.</strong>
</li>
<li>
<strong>AGENDA CHANGES.</strong>
</li>
<li>
<strong>GENERAL PUBLIC COMMENT</strong>. Public comments will be heard at 9:00 am for items not on
the agenda, for no more than 30 minutes. For those unable to attend the early comment period,
there will be additional comment time available later in the day.
</li>
</ol>
<h3>STATEWIDE</h3>
<ol class="split">
<li>
<strong>EXECUTIVE DIRECTOR'S REPORT.</strong>
<ol>
<li>
<a href="http://documents.coastal.ca.gov/reports/2014/3/W5a-3-2014.pdf" target="_blank"><strong>Director&#8217;s Report</strong></a>
</li>
<li>
<a href="http://documents.coastal.ca.gov/reports/2014/3/W5b-3-2014.pdf" target="_blank"><strong>Legislation</strong></a>. Commission discussion and possible action on pending legislation. (CL/SC-SF)
</li>
</ol>
</li>
</ol>
<h3>ENFORCEMENT</h3>
<ol class="split">
<li>
<strong>ENFORCEMENT REPORT</strong>. Report by Chief of Enforcement on Statewide Enforcement Program. (LAH-SF)
</li>
</ol>
@Soyuzbek
Copy link

not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment