CodePen

HTML

            
              <body>
  <section>
    <h1>LESS box-sizing IE fallback</h1>
  </section>
</body>
            
          
!

CSS

            
              .box(@width:'null', @padding:'null') {
  padding: @padding + 0%;
  width: @width + 0%; 
  .lt-ie8 & {
    padding: @padding + 0%;
    width: @width - @padding - @padding + 0%;
  }
}

section {
  background: white;
  .box(50, 3);
  margin: 0 auto;
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

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