create a flexible leader line in div after a label field - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Flex Container

Description

create a flexible leader line in div after a label field

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

.name {<!-- www. j a v  a2s .c om-->
   float: left;
}
.line-wrapper {
   display: block;
   overflow: hidden;
   padding-top: 6px;
}
.hzline {
   border-bottom: 3px solid red;
   width: 100%;
}


      </style> 
 </head> 
 <body> 
  <div class="titelcontent"> 
   <div class="name">
     Name 
   </div> 
   <div class="line-wrapper"> 
    <div class="hzline"></div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials