Hello. I want to add a tooltip using styles. Everything would be fine, but I'm interested in how to add a small corner to the bottom. I tried using the online service , but it does not come out ..
.compare.question:before { content: "\f059"; font-family: 'fontawesome'; font-size: 24px; } .compare.question:after { content: ""; } .compare.question:hover::after { content: attr(data-title); background-color: #e7e2e2; padding: 8px; width: 120px; color: #696e6e; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; position: absolute; border-style: solid; border-width: 7px 7px 0 7px; border-color: #e7e2e2 transparent transparent transparent; left: -80%; top: -100%; font-size: 12px; z-index: 999; }
<a href="#" class="compare question" data-title="Задать вопрос"></a>