Posted in
2687
11:33 pm, February 14, 2022
Using Marker to add a Triangle to List Items
In this demo i use the ::marker attribute on the list items to change the content of the marker to a ▶
HTML
<ul class="triangle-list">
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
</ul>
CSS
ul.triangle-list {
margin: 0.75em 0;
padding: 0 1em;
list-style: none;
}
ul.triangle-list li::marker {
content: "▶ ";
}
- List Item 1
- List Item 2
- List Item 3
View Statistics
This Week
65
This Month
254
This Year
812
Add Comment
Other Items in CSS
Related Search Terms
Other Categories in Code
alpine js apps c css factorio font awesome images linux quick modals sqlite site bugs site updates slick slider sliders testing windows apps apache api apps asp bat bootstrap bootstrap templates charts cookies core css css filters css grid design elements docker domains emoji fancybox fonts foundation framework gimp git html icons ideas image formatting images javascript javascript functions jquery js linux mac misc modals mysql nginx node php php errors php function php functions php simple html dom pi400 python react regex sections simple_html_dom simplepie php site bugs site documentation slick slider sql sqlite ssh sublime svg svg css templates tools virtual box vscode vue webdev windows windows 11 windows commands wordpress