Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is bootstrap setting the default font-size to 10px?

I am looking at the font-size for the html element and it says: 10px. And it claims that it comes from bootstrap (v3).

enter image description here

And sure enough, in bootstrap.css, I see the following:

html {
  font-size: 10px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

From what I've read, the default size should be 14px. The reason I am asking is that I've started using rem units and everything is appearing to be very small because the base font size is small.

What am I missing?

like image 687
AngryHacker Avatar asked Nov 02 '25 08:11

AngryHacker


1 Answers

In Bootstrap version 3.3.7 there is a style:

html {
  font-size: 10px;
   ...
}

Change to: (or whatever value you would like)

html {
    font-size: 100%;
    ...
}
like image 121
StefanBob Avatar answered Nov 03 '25 23:11

StefanBob



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!