I created a page displaying the size of your browser page. The problem is that the text displays the height and width of the browser. Although the text is perfectly aligned on Windows computers, they look very disconnected when viewed on Mac computers. It is also worth noting that this problem occurs when using an external resource ( http://fonts.com ) to create the desired Rockwell Extra Bold font.
Link to the site: http://howbigismybrowser.com/
The essential CSS of the container containing the text is as follows:
#display: { background: #232323; border: 15px solid #fff; color: #fff; font-family: 'Rockwell W01 Extra Bold', Arial, sans-serif; font-size: 4.063em; text-align: center; height: 170px; line-height: 170px; margin-left: auto; margin-right: auto; position: relative; z-index: 2; }
Update:
'display: table', but for some reason the font has extra space at the bottom. This does not seem to be an additional field or addition.

javascript html css
Carl Edwards
source share