Answer the question
In order to leave comments, you need to log in
Arial font width in different browsers. With what it is connected, how to fight?
There is a code.
css
.block {
padding:20px;
background:red;
float:left;
font-family:Arial;
font-size:14px;
}
<div class="block">
текст текст
</div>
Answer the question
In order to leave comments, you need to log in
If “do not offer to fix the width”, then practically nothing.
The fact that fonts render differently on different operating systems is a known fact and nothing can be done about it.
If block sizes up to a pixel are critical for you, then you need to manage them (block sizes) directly. And if you control them indirectly (through text sizes), errors are inevitable.
If the context of the task were known, then perhaps it would be possible to suggest some half-hearted solutions-crutches. But in this setting, no way.
so it will always be. Do not bother and it is worth looking for universal options
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question