CodePen

HTML

            
              <div class="container">
  <h2>Lorem Ipsum</h2>
</div>
            
          
!

↑ Insert the most common viewport meta tag

CSS

            
              .container {
  width:500px;
  height:200px;
  font:normal 1em Arial;
  color:#5f7c8c;
  margin:auto;
  border:1px solid red;
position:relative;
  }

h2 {
    color: @color-secondary;
    margin-bottom: @margin;
    .font-size(24);
    display:inline-block;
    padding-right:5px;
    background-color:#ffffff;
      
}
    h2:after {
        content: "";
        position: absolute;
      border-bottom:2px solid red;
        display: block;
      width:100%;
        margin-top:-9px;
     
        z-index:-1;
    }
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................