1

How can I allow users to change web page -built with bootstrap- font size when clicking on a button? I would like to change all components font size relatively. Is this possible?

Thanks,

Feras Odeh
  • 9,136
  • 20
  • 77
  • 121

2 Answers2

3

Bootstrap uses global @baseFontSize parameter that controls font size of all elements, but changing it would require re-compilation of the css with less.

MikeAr
  • 1,011
  • 8
  • 9
3

This is usually done with Javascript and cookies. Here's an example using jQuery:

Amr H. Abd Elmajeed
  • 1,521
  • 15
  • 41
Judd Lyon
  • 538
  • 1
  • 4
  • 11