Render Arabic Language properly - HTML CSS CSS Property

HTML CSS examples for CSS Property:direction

Description

Render Arabic Language properly

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">
.ex1 {<!--  ww w  .  j a  va2  s  .c  om-->
   direction:rtl;
}
</style> 
 </head> 
 <body> 
  <div>
    Some text. Default writing direction. 
  </div> 
  <div class="ex1"> 
   <div>
     { Some text. Right-to-left direction. 
   </div> 
   <div>
     { Some text. Right-to-left direction. 
   </div> 
   <div>
     { Some text. Right-to-left direction. 
   </div> 
   <div>
     { Some text. Right-to-left direction. 
   </div> 
   <div>
     { Some text. Right-to-left direction. 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials