Align text to the bottom of a big <a> element inside a big div - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Text

Description

Align text to the bottom of a big <a> element inside a big div

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">
.thumbnail {<!--   w  w  w. ja  v a  2 s.  com-->
   position:absolute;
   bottom:0;
   right:0;
}

a {
   display:block;
   position:relative;
   width:201px;
   height:201px;
   background-color:Chartreuse;
}
</style> 
 </head> 
 <body> 
  <a href="http://link.com"> 
   <div class="thumbnail">
     Link to somewhere 
   </div> </a>  
 </body>
</html>

Related Tutorials