I create a form that has the following section:

My approach to the Actions and Objects sections was to create these parameters using a list.
<div class="formBlock"> Activities <ul id="coloringAct"> <li>Activity Type A</li> <li>Activity Type B</li> <li>Activity Type C</li> </ul> </div>
I would like to be able to create colored blocks as if they were bullets in a list, either using a custom list style (not images) or using: in front of the selector. Essentially something like this:
#formTable tr td .formBlock li { list-style:none; margin:0; padding:0; border-top:1px solid #DDD; } #formTable tr td .formBlock li:before { content: ""; width:20px; height:20px; background:red; }
How can I do something using CSS? This does not work.
HERE FIDDLE.
source share