I've just started learning HTML5 and CSS3, and I've encountered a challenge:
Here is the code I have written so far:
.custom-list ol {
counter-reset: item;
padding-left: 10px;
}
.custom-list li {
display: block;
}
.custom-list li::before {
content: counters(item, ".") " ";
counter-increment: item
}
.custom-list-2 ol {
list-style-type: none;
counter-reset: elementcounter;
padding-left: 40px;
}
.custom-list-2 li::before {
content: "# " counter(elementcounter) ". ";
counter-increment: elementcounter;
font-weight: bold;
}
.custom-list-3 ul {
list-style-type: none;
padding-left: 40px;
}
.custom-list-3 li::before {
list-style-type: circle;
}
<div class="custom-list">
<div class="custom-list-3">
<ul>
<li>TEST 1</li>
<li>TEST 2</li>
<li>TEST 3</li>
</ul>
</div>
</div>
This is the output I am getting:
https://i.sstatic.net/7vP7T.png
And this is the desired outcome:
https://i.sstatic.net/Ewbms.png
How can I achieve this?
Update: 1
https://i.sstatic.net/Jm6cV.png
Here lies the issue... I want the numbers 1.6, 1.7, and 1.8 to disappear and only use the current <ul></ul>
structure.
Update 2
Thanks to @sol's solution, I'm close to the desired result!
https://i.sstatic.net/s7I4O.png
Now, I just need to remove the dot before the text 1.5.