Task: I place the legend in the form of pairs "term": "value". On the form it looks like this:
<table class="legend-table"> <tr><td>Destination</td><td>адрес подсети или хоста назначения</td></tr> <tr><td>Gateway</td><td>адрес шлюза, через который данный маршрут доступен</td></tr> ... </table> Next, I want to make sure that before each decoding of the value there is a dash - – | – | – – | – | – . To insert just a minus, I use the style:
table.legend-table tr td:last-child:before { content: " - " } But I want it to be just a dash. I made an intermediate version by inserting a dash character into the code, since the source is in UTF-8 and there is no problem:
table.legend-table tr td:last-child:before { content: " – " } But I wanted to know if there is a normal option to insert HTML code in front of the element via CSS (i.e., – or – )
Ideally, it would be to find a way to generally insert anything in front of an element, for example an icon or a glyph, or something else using CSS