Top property of relative positioned element in TD - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Relative Position

Description

Top property of relative positioned element in TD

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">
table {<!--   w  w w . j  av a 2 s  .  c o  m-->
   border-collapse:collapse;
   border:0;
   width:100%;
   background-color:Chartreuse;
}

table tbody tr td {
   height:100px;
}

a {
   background-color:yellow;
   width:21px;
   height:21px;
   display:block;
   float:left;
   position:relative;
   left:61%;
   top:81%
}
</style> 
 </head> 
 <body> 
  <table> 
   <thead></thead> 
   <tbody> 
    <tr> 
     <td> <a href="#">L</a> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials