Align text in a div to left bottom - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Text

Description

Align text in a div to left bottom

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <title>  Diane Frierson</title> 
  <style>
.container-fluid, .pre-content-banner {
   height:151px;
   width:901px;
   border:2px solid Chartreuse;
   position:relative;
}

.container {<!--  w w w .  ja  v  a  2s. com-->
   position:absolute;
   bottom:0px;
   text-align:center;
   border:2px solid yellow;
}

#intro-title bottom-aligned-text {
   font-size:21px;
   font-weight:normal;
   margin:0;
}
</style> 
 </head> 
 <body translate="no"> 
  <div class="container-fluid pre-content-banner"> 
   <div class="container"> 
    <h1 id="intro-title bottom-aligned-text">Test Title</h1> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials