Nesting countersEdit

Size
1,825 Kb
Views
8,096

How do I make an nesting countersedit?

What is a nesting countersedit? How do you make a nesting countersedit? This script and codes were developed by Томаш Хамлай on 11 November 2022, Friday.

Nesting countersEdit Previews

Nesting countersEdit - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Nesting countersEdit</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!-- Learn about this code on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Lists_and_Counters/Using_CSS_counters -->
<ol> <li>item</li> <!-- 1 --> <li>item <!-- 2 --> <ol> <li>item</li> <!-- 2.1 --> <li>item</li> <!-- 2.2 --> <li>item <!-- 2.3 --> <ol> <li>item</li> <!-- 2.3.1 --> <li>item</li> <!-- 2.3.2 --> </ol> <ol> <li>item</li> <!-- 2.3.1 --> <li>item</li> <!-- 2.3.2 --> <li>item</li> <!-- 2.3.3 --> </ol> </li> <li>item</li> <!-- 2.4 --> </ol> </li> <li>item</li> <!-- 3 --> <li>item</li> <!-- 4 -->
</ol>
<ol> <li>item</li> <!-- 1 --> <li>item</li> <!-- 2 -->
</ol>
</body>
</html>

Nesting countersEdit - Script Codes CSS Codes

ol { counter-reset: section; /* Creates a new instance of the section counter with each ol element */ list-style-type: none;
}
li::before { counter-increment: section; /* Increments only this instance of the section counter */ content: counters(section,".") " "; /* Adds the value of all instances of the section counter separated by a ".". */ /* if you need to support < IE8 then make sure there is no space after the ',' */
}
Nesting countersEdit - Script Codes
Nesting countersEdit - Script Codes
Home Page Home
Developer Томаш Хамлай
Username TomashKhamlai
Uploaded November 11, 2022
Rating 3
Size 1,825 Kb
Views 8,096
Do you need developer help for Nesting countersEdit?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Томаш Хамлай (TomashKhamlai) Script Codes
Create amazing marketing copy with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!