(The cross to the right of the inscription).

enter image description here

<div class="add-title"> Купить лошадь </div> <div class="add-description">По цене 300 т.р. за штуку</div> 

  • Show the layout ... - Air
  • <div class = "add-title"> Buy a horse </ div> <div class = "add-description"> At a price of 300 tr. apiece </ div> - Denis
  • Well....??? Did you have a thought in <div class="add-title"> shove another element with absolute positioning? For example span or the same div ? - Air
  • Judging by the question, a cycle of questions is expected, 1. Как сунуть в DIV крестик? 2. Как нажать на <div class="add-title"> Купить лошадь </div>, чтобы в <div class="add-description"> появилась цена 3. Как нажать на крестик, чтобы очистить <div class="add-description">По цене 300 т.р. за штуку</div> 3. Как нажать на крестик, чтобы очистить <div class="add-description">По цене 300 т.р. за штуку</div> - Air
  • I'm just a beginner and stupid yet. With 1 and 2 question you are right). Need to cross through the background-image to add? I just can't do it - Denis

1 answer 1

If you need the cross itself, you can use Font Awesome - these are font icons.

 .delete { color: red; } 
 <link href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" rel="stylesheet"/> <i class="fas fa-times delete"></i> 


If you do not want to connect the "whole library", then use the site Flaticon - icons in various formats.

 .delete { display: inline-block; width: 16px; height: 16px; background: url('https://i.stack.imgur.com/cLnMQ.png') no-repeat center center / contain; } 
 <div class="delete"></div>