CSS Triangular List Bullets – Arrow List Style

If you feel like the default style of a HTML list is boring, you can try applying these styles to make triangular list bullets.

Table of Contents

HTML

[html]
<ul class="custom-list">
<li>Video Games</li>
<li>Android Games</li>
<li>Android Apps</li>
<li>iOS Games</li>
<li>iOS Apps</li>
</ul>
[/html]

CSS

[css]
ul.custom-list {
list-style: none;
}
ul.custom-list li:before {
content: "";
height: 0;
width: 0;
border-color: transparent #fcb400;
border-style: solid;
border-width: 0.5em 0 0.5em 0.5em;
position: relative;
display: block;
left: -1em;
top: 1.25em;
}
[/css]

The position and color of the arrows can be adjusted to suit your design.

Leave a Comment

Your email address will not be published. Required fields are marked *

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close