Colored Numbers for Ordered List
How do I make an colored numbers for ordered list?
What is a colored numbers for ordered list? How do you make a colored numbers for ordered list? This script and codes were developed by 042 on 09 January 2023, Monday.
Colored Numbers for Ordered List - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Colored Numbers for Ordered List </title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="content"> <ol> <li>Lorem Ipsum</li> <li>Lorem Ipsum <br />Line 2</li> <li>Lorem Ipsum</li> <ol> <li>Works for nested lists</li> <li>Lorem Ipsum <br />Line 2</li> <li>Lorem Ipsum</li> </ol> </ol>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Colored Numbers for Ordered List - Script Codes CSS Codes
body { width: 720px;
}
ol { counter-reset: li; list-style: none; *list-style: decimal; font: 14px 'Trebuchet MS', 'Arial'; padding: 0;
}
ol ol { margin: 0 0 0 1.5em;
}
ol li { line-height: 2em;
}
ol li span { position: relative; display: block; padding-left: 2em; color: #444;
}
ol li span:before { content: counter(li) "."; counter-increment: li; position: absolute; top: 0; left: -.5em; height: 2em; width: 2em; text-align: right; font-weight: bold; color: #339966;
}
Colored Numbers for Ordered List - Script Codes JS Codes
$('#content ol li').wrapInner('<span />');
Developer | 042 |
Username | 042 |
Uploaded | January 09, 2023 |
Rating | 3 |
Size | 2,352 Kb |
Views | 8,096 |
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!
Name | Size |
Fixed responsive layout | 2,485 Kb |
Animating characters with jQuery | 2,776 Kb |
JCycle2 with HammerJS | 15,418 Kb |
The Singapore Flag using Pure CSS | 2,807 Kb |
Custom HTML Nested List Counters | 2,534 Kb |
Vertical Sprite with Greensock TweenMax | 1,889 Kb |
Custom Kakao Share Button | 2,000 Kb |
A Pen by 042 | 2,956 Kb |
Scrolling through cards with stepper | 4,994 Kb |
SR_02 | 3,668 Kb |
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!
Name | Username | Size |
Ghost Buttons with CSS3 | Mithicher | 2,509 Kb |
Process Accordion | Devilskitchen | 31,432 Kb |
Awesome Full Page Menu Nav | Ey_intuitive | 4,194 Kb |
A Pen by Patrick Cox | Pcridesagain | 2,899 Kb |
A Pen by Miro Olma | Programiro | 2,342 Kb |
Z-index demo | Kblh | 1,534 Kb |
CSS Bot Confusion | Jpod | 3,456 Kb |
CSS Grid Test | Ajaykarwal | 2,377 Kb |
Part 19 Bootstrap split button dropdown | Venkatesha | 1,601 Kb |
Out of the blue | Giaco | 2,537 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!