Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

font-size 10px cant apply, always 12px

Simple code, but in chrome font-size is always 12px, in IE it's 10px. For px larger than 12, it's ok to change. But for px under 12, it cant be changed....how to fix this?

<html>
<head>
    <style type="text/css" >
    body{
        font-size: 10px;
    }
    div{
        margin: 0 auto;
        border: 1px solid #000;
        width: 60em;
    }
    </style>
</head>
<body>
    <div>
        wrapper
    </div>
</body>

like image 848
jchnxu Avatar asked Feb 17 '23 03:02

jchnxu


1 Answers

In chrome://settings/fonts, there is a setting for "minimum font size". You probably have that set to 12px.

like image 132
Niet the Dark Absol Avatar answered Feb 23 '23 14:02

Niet the Dark Absol