CodePen

HTML

            
              <div></div>
<div></div>
            
          
!

CSS

            
              body {
  padding: 20px;
}

div {
  width: 50ex;
  height: 40px;
  background: orange;
  margin: 20px;
}

div:nth-child(1) {
  font-family: Serif; 
}

div:nth-child(2) {
  font-family: Sans-Serif;
}
            
          
!

JavaScript

            
              
            
          
!
999px
Loading ..................