Pseudo class :first-letter with display:block or position absolute - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Absolute Position

Description

Pseudo class :first-letter with display:block or position absolute

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <title>Lorem ipsum do</title> 
  <style>
.some-word {<!--from www  . ja v  a2 s  . c o  m-->
   overflow:hidden;
   width:71px;
}

.some-word:first-letter {
   font-size:31px;
   margin-right:100%;
   float:left;
   margin-left:16px;
}
</style> 
 </head> 
 <body translate="no"> 
  <div class="some-word">
    Lorem ips 
  </div>  
 </body>
</html>

Related Tutorials