I have to show like
(a)
(b)
(c)
Update:
I found a CSS way
ol {list-style-type: none;}
li:before {content: "(" counter(section, lower-alpha) ") ";}
li { counter-increment: section;}
but it not works in IE 7 and lower.
To open the body of an HTML first open the HTML document, to do so write an open bracket, then html, the close the bracket. Next press enter. Type another open bracket, then type the word body, then type a closed bracket.
Go to your CSS page and write the name of the section. For example: body, p, head, div class, etc. Put curly brackets: { } Inside of the curly brackets, state what you would like to change.
This is possible with custom counters, but at least IE7- doesn't support it, some others mightn't either. See here for details: http://www.quirksmode.org/css/counter.html
Ex:
li:before {
content: "(" counter(mycounter,lower-latin) ")";
}
I use this code snippet in mediawiki with CSS enabled. I am not sure whether this will work in older versions of IE...
<style>
/* css handles the parentheses/brackets */
.laparent ol { counter-reset: item }
.laparent li { display: block ; counter-increment: item; }
/* replace the counter before list item with
open parenthesis + counter + close parenthesis */
.laparent li:before { content: " (" counter(item,lower-alpha) ") "; }
</style>
<ol class="laparent">
<li> this is the first item; </li>
<li> this is the second item; or </li>
<li> this is the third item. </li>
</ol>
Outputs:
(a) this is the first item;
(b) this is the second item; or
(c) this is the third item.
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