I want to create a square before the span. Something like this image .

But I was not able to create this using the span:before property. Is it possible to create with this? If so, can someone tell me how can I do this?
I created this with simple CSS. Here is my code
HTML:
<div id="five_day_table"> <h3>Annual Cleaning Schedule</h3> <div class="r-cl"><span></span>Forecasted Rain Clean</div> <div class="m-cl"><span></span>Forecasted Manual Clean</div> <div class="cm-cl"><span></span>Completed Manual Clean</div> <div class="d-cl"><span></span>Forecasted Dirty Rain</div> </div>
and CSS
#five_day_table span { width: 14px; height: 14px; display: block; float: left; margin: 1px 3px 0px 0px; } .r-cl span { background: Blue; } .m-cl span { background: red; } .cm-cl span { background: green; } .d-cl span { background: brown; }
Here is a working link. But I want to use only this HTML code.
<div id="five_day_table"> <h3>Annual Cleaning Schedule</h3> <span class='one'>Forecasted Rain Clean</span> <span class='two'>Forecasted Manual Clean</span> <span class='three'>Completed Manual Clean</span> <span class='four'>Forecasted Dirty Rain</span> </div>
How is this possible?
html css css-shapes
Mkd
source share