HTML Design: Responsive Text Size
Tested: Bootstrap Framework
Tested: Bootstrap Framework
1vw = 1% of viewport width
1vh = 1% of viewport height
1vmin = 1vw or 1vh, if smaller
1vmax = 1vw or 1vh, if larger
Example:
h1 {
font-size: 5.9vw;
}
h2 {
font-size: 3.0vh;
}
p {
font-size: 2vmin;
}
Comments
Post a Comment