Reverse font percentages - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Font

Description

Reverse font percentages

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">
#row2 {<!--from   w w  w . j  av  a 2 s . c om-->
   font-size:126%;
}

#row2 input:first-child {
   font-size:81%;
}

.eighty-percent {
   font-size:81%;
}

input {
   width:11em;
}
</style> 
 </head> 
 <body>
   Lorem 
  <div id="base"> 
   <div id="row1">
     Lorem 
    <input type="text" value="test"> 
   </div> 
   <div id="row2">
     Lorem 
    <input type="text" value="test"> 
    <input type="text" value="test"> 
    <span class="eighty-percent">Lore</span> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials