Make two different font sizes sit on one line - HTML CSS CSS Property

HTML CSS examples for CSS Property:font-size

Description

Make two different font sizes sit on one line

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">
.big {<!--from w  ww  .j  a  v a2  s .  c  o m-->
   font-size:21px;
}

.small {
   font-size:11px;
}
</style> 
 </head> 
 <body> 
  <div class="parent"> 
   <span class="big">Lore</span> 
   <span class="small">Lorem ipsum dolor sit amet, conse</span> 
   <span class="small">Lorem ips</span> 
  </div>  
 </body>
</html>

Related Tutorials