List bullets like 1) 2) 3) [duplicate]
Asked Answered
G

1

10

I need this types of bullets using CSS

1) Lorem ipsum dolor sit amet, consectetur adipisicing elit

2) Lorem ipsum dolor sit amet, consectetur adipisicing elit

3) Lorem ipsum dolor sit amet, consectetur adipisicing elit

Any one have a idea about this ?

Gonium answered 9/6, 2017 at 6:6 Comment(0)
O
23

Use CSS counters. The counter-increment CSS property is used to increase the value of CSS Counters by a given value. The counter's value can be reset using the counter-reset CSS property. Try this

ol {
  counter-reset: item;
  list-style-type: none;
}

ol li:before {
  content: counter(item) ")";
  padding-right: 5px;
  counter-increment: item
}
<ol>
  <li>Lorem ipsum dolor sit amet, consectetur adipisicing elit</li>
  <li>Lorem ipsum dolor sit amet, consectetur adipisicing elit</li>
  <li>Lorem ipsum dolor sit amet, consectetur adipisicing elit</li>
</ol>
Osmo answered 9/6, 2017 at 6:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.