Style Lists with New CSS — Bullets, Numbers, Markers
When you create lists in HTML, browsers add bullet-points (for unordered lists) and numbers (for ordered lists). Now CSS gives us the tools to style those list "markers", and even create our own!
- Use the ::marker pseudo element to style list bullets & numbers
- Use display: list-item to add a counter on any element
- Use counter-reset and counter-increment to create your own counters
- Use counter() and counters() to control how counter numbers are displayed
I'll also show you how the ::marker element is different from ::before or ::after.
Demo: https://codepen.io/mirisuzanne/pen/BaBKowO?editors=0100
Видео Style Lists with New CSS — Bullets, Numbers, Markers канала Mozilla Developer
- Use the ::marker pseudo element to style list bullets & numbers
- Use display: list-item to add a counter on any element
- Use counter-reset and counter-increment to create your own counters
- Use counter() and counters() to control how counter numbers are displayed
I'll also show you how the ::marker element is different from ::before or ::after.
Demo: https://codepen.io/mirisuzanne/pen/BaBKowO?editors=0100
Видео Style Lists with New CSS — Bullets, Numbers, Markers канала Mozilla Developer
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Build a Classic Layout FAST in CSS Grid](https://i.ytimg.com/vi/KOvGeFUHAC0/default.jpg)
![Do This to Improve Image Loading on Your Website](https://i.ytimg.com/vi/4-d_SoCHeWE/default.jpg)
![Inner & Outer Values of the Display Property](https://i.ytimg.com/vi/4Clyc38U-MA/default.jpg)
![Edit your CSS Shapes with the Shape Path Editor](https://i.ytimg.com/vi/u9bDe3Bw0sA/default.jpg)
![CSS List Styles Tutorial for Beginners](https://i.ytimg.com/vi/jcThx0U066w/default.jpg)
![HTML Crash Course For Absolute Beginners](https://i.ytimg.com/vi/UB1O30fR-EE/default.jpg)
![](https://i.ytimg.com/vi/tmUSsJ1b9Vw/default.jpg)
![Scroll Snap in CSS Instead of JavaScript](https://i.ytimg.com/vi/pohyK8iz-SQ/default.jpg)
![Styling your list-items just got so much easier with this pseudo-element!](https://i.ytimg.com/vi/svhnI9sKUDI/default.jpg)
![Style Lists With Css - Css Lists Style - Pure CSS Tutorial - Css Hover Effects](https://i.ytimg.com/vi/dhLcyBCJ0r4/default.jpg)
![Don't Wait to Use Subgrid for Better Card Layouts](https://i.ytimg.com/vi/lLnFtK1LNu4/default.jpg)
![Using Images and Background Images as List Item Bullets](https://i.ytimg.com/vi/M5audtofhIo/default.jpg)
![Why I use the BEM naming convention for my CSS](https://i.ytimg.com/vi/SLjHSVwXYq4/default.jpg)
![Learn CSS Position In 9 Minutes](https://i.ytimg.com/vi/jx5jmI0UlXU/default.jpg)
![Cool Menu Hover Animation with css Blur Effect | CSS Menu hover Effect](https://i.ytimg.com/vi/DrE2hBGCx8E/default.jpg)
![Testing Color Contrast & Simulating Color Blindness with the Firefox Accessibility Inspector](https://i.ytimg.com/vi/eBefjaWud-M/default.jpg)
![Minimalist Bullet Journal Set Up | Finding Productivity in the Analogue](https://i.ytimg.com/vi/9iVvjXR69Iw/default.jpg)
![5 CSS mistakes that I see way too often](https://i.ytimg.com/vi/iHEkRIF7zxI/default.jpg)
![Next-Level List Bullets With CSS ::marker](https://i.ytimg.com/vi/uzYZUPoEli8/default.jpg)
![Inspecting the CSS Cascade using Firefox DevTools](https://i.ytimg.com/vi/Sp9ZfSvpf7A/default.jpg)