Bootstrap font sizing for mobile, tablets and PCs -
i writing small game using bootstrap , want font size remain proportionally consistent on phone, tablet , pc.
<h1>points: {{points}}</h1>
the trouble above smaller on higher level resolutions , wrecks layout have designed game.
how solve issue?
as suggested @ckuijjer, vw unit works well. resize window, font size resized in proportion size of window.
@media { h1 { font-size: 6vw;} h2 { font-size: 5vw;} h3 { font-size: 4vw;} h4 { font-size: 3vw;} h5 { font-size: 2vw;} h6 { font-size: 1vw;} }
Comments
Post a Comment