How do I start an ordered list from a number of my choosing?
Instead of 1. 2. 3. I want the list to be 11. 12. 13. Must be XHTML 1.0 Strict
Public Comments
- <ol> does have a "start" attribute, but it probably doesn't comply with XHTML1.0. You can use <ol style="counter-reset:10;"> to make the list start at 11 - it is CSS2 compliant but won't work in IE6. T.
- <ol start="10"> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ol> if doesnt comply try this little script in place of your list <script> var x=10; //replace 10 with the number you would like to start with. var listt=["item 1","item 2","item 3","item numbah 4"]; //add options in this format for(i=0;i<listt.length;i++){ document.write((eval(x+i))+". "+listt[i]+"<br>"); } </script>
Powered by Yahoo! Answers