Как добавить значок SVG рядом с моим элементом DL? - PullRequest
0 голосов
/ 25 апреля 2019

Я создал список dl с элементами dt и dd. Я хотел бы узнать, как я могу добавить стиль CSS для моего DT, который будет включать значок SVG перед DT. Это ссылка на значок svg: http://www.urs.co.za/test/assets/images/icon_25_bullet.svg

<dl>
<dt><strong>Grow your customer list with Store Master </strong> </dt>
to effortlessly capture your customer's details whilst processing the sale. Communicate with your  customers and encourage them to return by notifying them about discounts and promotions.</dd></dl>
<br>
<dl>          
<dt><strong>Get better business insight and increase your sales with powerful inventory management</strong></dt><br>
<dd>Categorize your products by name, type, brand, supplier, etc for quick and efficient stock takes and insightful reporting. Save time with bulk product changes.</dd>
<br> 
<dt><strong>Barcodes and labels</dt>
</strong><br><dd>Create and print barcodes and labels making it easy for you to add products to sales, IBT’s or stock takes.</dd><br>
</dl>

1 Ответ

1 голос
/ 25 апреля 2019
dt:before {
    content: " ";
    background: url("http://www.urs.co.za/test/assets/images/icon_25_bullet.svg");
    background-size: contain;
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: top;
}

будет отлично работать.

...