Quantcast
Channel: Unicode character for "X" cancel / close? - Stack Overflow
Viewing all articles
Browse latest Browse all 38

Answer by Roko C. Buljan for Which font for CSS "x" close button?

$
0
0

HTML

✕✓
✖✔

✗
✘

× × ×

CSS

If you want to use the above characters from CSS (like i.e: in an :before or :after pseudo) simply use the escaped \ Unicode HEX value, like for example:

[class^="ico-"], [class*=" ico-"]{
  font: normal 1em/1 Arial, sans-serif;
  display: inline-block;
}


.ico-times:before{ content: "\2716"; }
.ico-check:before{ content: "\2714"; }
<i class="ico-times"></i>
<i class="ico-check"></i>

Use examples for different languages:

  • &#x2715; HTML
  • '\2715' CSS like i.e: .clear:before { content: '\2715'; }
  • '\u2715' JavaScript string

Viewing all articles
Browse latest Browse all 38

Trending Articles