I'm writing a reveal.js project and I can't seem to change the types of the ordered lists.
What I want:
Fruits
a. Orange
b. Banana
c. Apple
Vegetables
a. Carrot
b. Lettuce
c. Cabbage
I wrote:
<section>
<ol type="1">
<li>
Fruits
<ol type="a">
<li>Orange</li>
<li>Banana</li>
<li>Apple</li>
</ol>
</li>
<li>
Vegetables
<ol type="a">
<li>Carrot</li>
<li>Lettuce</li>
<li>Cabbage</li>
</ol>
</li>
</ol>
</section>
What I get:
What am I doing wrong? Is there a restriction in reveal.js that keeps me from changing the types?
I ended up using a css class to change it instead.
So it now looks like:
<style>
ol.alphaList {list-style-type: lower-alpha;}
</style>
<section>
<ol type="1">
<li>
Fruits
<ol class="alphaList">
<li>Orange</li>
<li>Banana</li>
<li>Apple</li>
</ol>
</li>
<li>
Vegetables
<ol class="alphaList">
<li>Carrot</li>
<li>Lettuce</li>
<li>Cabbage</li>
</ol>
</li>
</ol>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With