Increase the font size of first two letters of any word/sentence - HTML CSS CSS Property

HTML CSS examples for CSS Property:font-size

Description

Increase the font size of first two letters of any word/sentence

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">
.nav {<!--  w  w w.  j a v a 2  s .c  om-->
   font-family:arial;
   background:Chartreuse;
   overflow:hidden;
   padding:11px;
}

a {
   color:yellow;
   text-decoration:none;
}

ul {
   margin:0;
   padding:0;
   list-style:none;
}

li {
   font-size:13px;
   float:left;
   margin-right:31px;
}

ul li a span {
   font-size:26px;
}
</style> 
 </head> 
 <body> 
  <div class="nav"> 
   <ul> 
    <li> <a href="#">Lorem</a> </li> 
    <li> <a href="#"> <span>Lo</span>Lorem ipsum dolor sit </a> </li> 
    <li> <a href="#"> <span>Lo</span>Lorem i</a> </li> 
    <li> <a href="#"> <span>Lo</span>Lorem ipsum do</a> </li> 
    <li> <a href="#">Lorem i</a> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials