Here is a list that I am currently working with:
<ul>
<li>question1</li>
<li>answer1</li>
<li>question2</li>
<li>answer2</li>
</ul>
I have applied the following CSS styling:
ul {
list-style:decimal;
}
I want to know if there is a way to alternate the symbols for every 2nd item. I tried using nth-child, but since the list-style is on the ul tag, it did not work.
To clarify, here is an example of how I would like the list to be styled:
1. question1
a. answer1
2. question2
a. answer2
3. question3
and so on