×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: CSS
Posted by: Srinivasan Pusuluri
Added: May 29, 2014 11:17 AM
Views: 21
css3 viewport size typography
  1. 1vw = 1% of viewport width
  2. 1vh = 1% of viewport height
  3. 1vmin = 1vw or 1vh, whichever is smaller
  4. 1vmax = 1vw or 1vh, whichever is larger
  5.  
  6. jquery
  7. causeRepaintsOn = $("h1, h2, h3, p");
  8.  
  9. $(window).resize(function() {
  10.   causeRepaintsOn.css("z-index", 1);
  11. });
  12.  
  13.