hi there I cannot figure out how to align this simple list, as you can see is round but I would like to be straight vertically.
css part:
ol { list-style: none; } ol li { counter-increment: my-awesome-counter; } ol li::before { content: counter(my-awesome-counter) ". "; color:black; font-weight: bold; } js part: <ol> {testHeaders.map((header, index) => { return ( <li key={index} value={header}> {header} </li> ); })} </ol>
Thanks guys
You could do with text-align property
text-align
ol li { counter-increment: my-awesome-counter; text-align:left; }
1.4m articles
1.4m replys
5 comments
57.0k users