I'm looking to showcase a Unicode character at the center of a button. Below is the code snippet:
<div class="col-xs-1">
<button class="btn btn-tool">
<span></span>
</button>
</div>
span:before {
font-family: "Arial Unicode MS";
content: "\25cf";
font-size: 3em;
vertical-align: middle;
}
Following the suggestions at this link, I attempted to adjust the character's size using
font-size
and
vertical-align.
However, when viewing the JSFiddle, the alignment did not turn out as expected (character centered both horizontally and vertically). Any assistance would be appreciated.