html code
<ul> <li>Beautiful corporate brand marketing theme</li> <li>Beautiful Online Consultation feedback plug-in </li> <li>Exhibition theme of beautiful Chinese style products</li> <li>Beautiful and free version enterprise station Responsive Theme</li> <li>Beautiful and luxurious version response Style Theme</li> </ul>
Css style
ul { margin: 0; padding: 0; counter-reset: li; } ul > li:before { content: counter(li); counter-increment: li; }
ul > li:nth-child(1):before,ul > li:nth-child(2):before,ul > li:nth-child(3):before{color: #fff;} ul > li:nth-child(1):before { background: #FF6B57; } ul > li:nth-child(2):before { background: #2ea7e0; } ul > li:nth-child(3):before { background: #6bc30d; }