Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script src="_so/js?" id="so"></script>
<meta charset="utf-8">
<title>Demo by Roko C.B.</title>
</head>
<body>
 
  
  <div class="f6">font 6</div>
  <div class="f18">font 18</div>
  <div class="f8">font 8</div>
  <div class="f30">font 30</div>
  
  
  
</body>
</html>
.f8{
  font-size:8px;
}
.f6{
  font-size:6px;
}
.f18{
  font-size:18px;
}
.f30{
  font-size:30px;
}
 
$('*').css('fontSize', function(i, fs){
  if(parseInt(fs, 10) < 12 ) return this.style.fontSize = "12px";
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
roXonpro
0viewers