Font weight settings - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Font

Description

Font weight settings

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">
.class-1 {<!--from w w w .jav a 2s  .c o m-->
   font-weight:bold;
   color:Chartreuse;
}

.class-1:nth-of-type(2) {
   font-weight:normal;
   color:yellow;
}
</style> 
 </head> 
 <body> 
  <span class="class-1">Lorem</span> 
  <p>Lorem ipsum dolor sit amet, consectetur a</p> 
  <span class="class-1">Lorem</span>  
 </body>
</html>

Related Tutorials