I'd like to left align both the numbers and the text in my <ol>
. This is what I'm trying to accomplish:
For now, each <li>
contains an <a>
, but that can change. So far I tried putting left padding and then a text-indent on the <a>
.
Here is my code as of now.
HTML:
<ol class="dinosaurs">
<li><a>Dinosaur</a></li>
<li><a>Tyrannosaurus</a></li>
<li><a>Camptosaurus</a></li>
</ol>
CSS:
.dinosaurs{
list-style-position: inside;
}
NOTE: I'm viewing the webpage in Chrome 23 on Windows 7.