jquery - Font size based on device width -


how should set font size based on device width mobile site renders fine on width devices. using jquery mobile. take care of this.

viewport. writeup david storey: https://css-tricks.com/viewport-sized-typography/

ex:

#box{    background-color:black;    width: 100vh;  }      h1.rad {  text-align: center;  vertical-align: middle;  color: #999;  font-family: "helvetica neue";  font-size:  3.14159vw;  line-height: 6.66vh;  font-weight: 100;  text-transform: uppercase;  }
<div id="box">  <h1 class="rad">    viewport sizing.<br>so rad.    </h1>    </div>


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -