Keep text at the right bottom of container - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Text

Description

Keep text at the right bottom of container

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">
div.content {<!--from   w w w .  j  a v  a  2 s.c  om-->
   border:2px solid Chartreuse;
   min-height:551px;
   position:relative;
}

div.footer {
   border:2px solid yellow;
   height:21px;
   color:blue;
   font-size:0.10em;
   text-align:right;
   bottom:0;
   right:0;
   position:absolute;
   padding-right:11px;
   padding-bottom:11px;
}
</style> 
 </head> 
 <body> 
  <div class="content">
    Lorem ips 
   <div class="footer">
     Lorem ip 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials