CSS - Make sans-serif font imitate monospace font - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Font

Description

CSS - Make sans-serif font imitate monospace font

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">
#logo {<!--from w ww .jav  a 2 s.  co  m-->
   width:129px;
   height:100%;
   background-color:Chartreuse;
   float:left;
}

#logo a {
   width:100%;
   height:100%;
   display:block;
   text-decoration:none;
}

#logo h1 {
   margin:0px;
   padding:27px 31px;
   text-align:center;
   text-transform:uppercase;
   font-kerning:none;
   display:block;
   color:yellow;
}

.h1a {
   font-size:37px;
}

.h1b {
   font-size:41px;
}
</style> 
 </head> 
 <body> 
  <div id="logo"> 
   <a href="#"> <h1> <span class="h1a">Lor</span> <br> <span class="h1b">Lor</span> </h1> </a> 
  </div>  
 </body>
</html>

Related Tutorials