First word in sentence has bigger font-size - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Font

Description

First word in sentence has bigger font-size

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">
p {<!--from w  w  w. java 2s. c o m-->
   margin-bottom:2em
}

span {
   font-size:3em;
   line-height:2
}
</style> 
 </head> 
 <body> 
  <p>Lorem ipsum dolor sit amet, co</p> 
  <p> <span>Lorem ip</span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat.</p> 
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor<span>Lorem ip</span>Lorem ipsum dolor sit ame</p>  
 </body>
</html>

Related Tutorials