draw a black line down the center of a column, over an image - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Column Layout

Description

draw a black line down the center of a column, over an image

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">

.verticalLine {<!-- www  .jav a 2  s  .c o m-->
   position: relative;
   float: center;
   height: 100%;
   width: 1px;
   background: #000;
   z-index: 9999;
}
td {
   height: 50px;
}


      </style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td align="center" valign="center"> 
      <div class="verticalLine" id="verticalLine"></div> <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials