codingninja
codingninja

Reputation: 1410

need to display a certain list style

I need to my ul list to display the ➢ list type instead of the default bullet type.

Is there are list type that will display it? Or can it only be displayed as a background image? What would be the best way to have that list type?

Upvotes: 0

Views: 59

Answers (3)

egig
egig

Reputation: 4430

I will use this CSS:

ul {
  list-style-image: url('yourlisticon.gif');
}

Upvotes: 0

Shimon Rachlenko
Shimon Rachlenko

Reputation: 5517

There is no such bullet in the list-style-type property, but fortunately, there are other ways to do so:

  1. the list-style-image property - just specify URL to the image.
  2. the :after or :before pseudoclass:
li {
  list-style-type: none
}
li:before {
  content: "➢"
}

Upvotes: 2

Bernie
Bernie

Reputation: 1489

I don't believe there is a default bullet type for that particular image, however, you can add custom bullets.

Upvotes: 0

Related Questions