During my experiments, I noticed that IE applies a border to several unicode characters within the UTF-8 dingbats subset. This issue could be attributed to the limitations of the font used for rendering the character (potentially Arial Unicode MS?).
If you wish to reliably utilize the #10006
entity, it may be necessary to employ a web font that includes said character. For instance, utilizing DejaVu Sans can ensure proper display in Edge: https://jsfiddle.net/ekwtwv11/
@font-face {
font-family: 'DejaVuSans';
src: url(dejavusans-webfont.woff);
}
.utf10006 {
font-family: 'DejaVuSans', 'Arial Unicode MS', sans-serif;
}
Nevertheless, there exist alternative options that might be more suitable:
- Utilize
#215;
, a character supported by most fonts
- Implement an SVG shape
- Leverage
:before
and :after
pseudo selectors to create an "x" on your button:
<div class="btn"></div>
.btn {
position: relative;
width: 40px;
height: 40px;
background: red;
border-radius: 50%;
}
.btn:before,
.btn:after {
content: '';
position: absolute;
left: 6px;
top: 16px;
display: block;
background: white;
width: 28px;
height: 8px;
}
.btn:before {
transform: rotate(45deg);
}
.btn:after {
transform: rotate(-45deg);
}
Feel free to explore this demonstration showcasing the aforementioned technique: https://jsfiddle.net/2p9ufxt7/