If your HTML code is similar to the example provided below:
<div class="entry-content-wrapper">
<div>
<ol>
<li>Test One</li>
<li>Test Two</li>
<li>Test Three</li>
</ol>
</div>
</div>
After reviewing the CSS you shared, I identified two statements that could potentially be causing conflicts in the browser:
.entry-content-wrapper li { margin-left: 1em; padding:3px 0;}
.entry-content-wrapper div li {
text-indent: 0px;
}
I removed the aforementioned CSS rules but kept the rest of your styles intact. Additionally, I included the following code:
ul, ol { margin-bottom: 20px; } ul { list-style: none outside; margin-left: 0px;} ol { list-style: decimal; margin-left: 0px; } ol, ul.square, ul.circle, ul.disc { } ul.square { list-style: square outside; } ul.circle { list-style: circle outside; } ul.disc, .entry-content-wrapper ul { list-style: disc outside; } ul ul, ul ol, ol ol, ol ul { margin: 4px 0 5px 0px; } ul ul li, ul ol li, ol ol li, ol ul li { margin-bottom: 6px; }
.entry-content-wrapper .borderlist>li:first-child { border-top:1px solid; } .entry-content-wrapper .borderlist>li { border-bottom:1px solid; padding: 5px 0; list-style-position: outside; margin:0;}
.entry-content-wrapper li {
margin-left: 40px;
padding:0 30px;
margin-bottom:10px;
}
ol {
counter-reset:li; /* Initiate a counter */
margin-left:0;
padding-left:0;
}
ol > li{
list-style:none;
}
ol > li::before {
content: "(" counter( li ) ")"; /* Use the counter as content */
counter-increment:li; /* Increment the counter by 1 */
padding-right:30px;
list-style:outside;
}
li {
width:300px;
padding-right:30px;
text-indent: -50px;
}
For further reference, you can view the Live Demo Here.
The resulting output should align with what you aim to achieve, especially when the pseudo-element marker becomes widely supported by major browsers.