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

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -