html - Unicode different size arrows -


i have following code:

.testfont {    font-size: 16px;  }
<!doctype html>  <html>    <head>  </head>    <body>    <div class="outter">      <div class="testfont">&#9652</div>      <div class="testfont">&#9662</div>    </div>  </body>    </html>

the unicode table below shows arrows used above should equivalent in size (from visual inspection):

enter image description here

enter image description here

enter image description here

why rendered differently? , how can equivalent arrow sizes?

fiddle

update

tested on chrome , safari both render down arrow bigger?

output image

enter image description here

this because of lucida grande font, might default font on system :

enter image description hereenter image description here

to avoid it, define font use (better webfont you'd sure every 1 see same, don't know 1 support these glyphes).

.testfont {     font-size:16px;     /* tested on mac os,         if lead me default win , *nix default fonts,        i'd glad include     */     font-family: 'arial unicode ms', 'consolas';  }
<div class="outter">     <div class="testfont">&#9652</div>     <div class="testfont">&#9662</div>  </div>


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -