If you don't mind using absolute positioning, this might work for you.
<style type="text/css">
li {
list-style-position: inside;
}
.li-content {
position: absolute;
left: 80px;
}
</style>
<ol>
<li><span class="li-content">Test content</span></li>
(...)
<li><span class="li-content">Test content</span></li>
</ol>
Note: If you've got anything appearing to the left of the <ol>
element on your page (like a floating div), that content will move the numbers to the right, but not the acutal <li>
content.
You could also use a whole different technique, with a different markup (nested div elements) with display:table and display:table-cell properties set. That would eliminate the issue with elements appearing on the left, but would require you to utilize the CSS counter
property.