CSS text-align-last property

CSSWeb DevelopmentFront End Technology

The text-align property is used to align the last line of the text. You can try to run the following code to implement a text-align-last property in CSS3 −

Example

Live Demo

<!DOCTYPE html>
   <html>
      <head>
         <style>
            .mydiv {
               text-align-last: right;
            }
         </style>
      </head>
   <body>
      <h1>text-align-last Property</h1>
      <div class = "mydiv">
         <p>This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text.</p>
      </div>
   </body>
</html>
raja
Published on 02-May-2018 11:15:25
Advertisements