.ontario-icon { display: inline-block; width: 24px; height: 24px; stroke-width: 0; stroke: currentColor; fill: currentColor; /* The default vertical-align is `baseline`, which leaves a few pixels of space below the icon. Using `center` prevents this. For icons shown alongside text, you may want to use a more precise value, e.g. `vertical-align: -4px` or `vertical-align: -0.15em`. */ vertical-align: middle; /* Paths and strokes that overflow the viewBox can show in IE11. */ overflow: hidden; margin-bottom: 2px; }