Changing font from data-content - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Font

Description

Changing font from data-content

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.image:before {<!--from w w w  .  j  av a 2 s.  com-->
   content:attr(data-content);
   font-size:43px;
}
</style> 
 </head> 
 <body> 
  <div data-content="Reach" class="image"> 
  </div>  
 </body>
</html>

Related Tutorials