Emoji bullets
@counter-style stars {
system: cyclic;
symbols: "★" "☆";
suffix: " ";
}
ul { list-style: stars; }
The @counter-style at-rule defines a named counter style. Use it with list-style-type to create custom bullets, letters, or symbols.
@counter-style thumbs {
system: cyclic;
symbols: "👍" "👉";
suffix: " ";
}
ul { list-style-type: thumbs; }@counter-style stars {
system: cyclic;
symbols: "★" "☆";
suffix: " ";
}
ul { list-style: stars; }@counter-style boxed {
system: alphabetic;
symbols: A B C D E;
suffix: ") ";
}@counter-style is a modern CSS at-rule.
Check current browsers before relying on advanced behavior.
Bottom line: Use progressive enhancement. Keep a readable fallback when a browser ignores the at-rule.
Continue with @view-transition.
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
3 people found this page helpful