Skip to content

Easily style HTML list bullets and ordered list numbers without affecting the body text.

Notifications You must be signed in to change notification settings

Hemphill/styleable-lists

Repository files navigation

CSS Styleable Lists

Easy CSS styling for unordered list (ul) bullets and ordered list (ol) numbers.

Have you ever wanted to color the bullets or numbers of an HTML list independently from the body text?

Unfortunately, in CSS it's not as straight forward as you'd expect.

The CSS library styleable-lists makes it easy to style HTML list bullets and numbers without affecting the body text. Simply place your styles on the li:before selector and vola custom bullets. Observe the following example where we choose to style our ul li bullets & ol li numbers red.

li:before {
  color: red;
}

Installation

You can either download styleable-lists from github or use bower to install it.

Using Bower

First, install the bower package with the following command.

bower install styleable-lists --save

Next, include the CSS or SCSS file in your project.

<link href="/bower_components/stylable-lists/stylable-lists.css">

OR

@import /bower_components/stylable-lists/stylable-lists.scss

Download

First, visit the project on github then use the Download Zip button on the right.

Then you can include the stylable-lists.css or stylable-lists.scss file on you website.

About

Easily style HTML list bullets and ordered list numbers without affecting the body text.

Resources

Stars

Watchers

Forks

Packages

No packages published