0

I have written some code in less which is wrongly calculated its bug or something that I do wrong.

Orignal Code

 .main-class{
       .page-title-wrapper{
         width: calc( 100% - 45px );
       } 
 }

Expected result

 .main-class  .page-title-wrapper{
     width: calc( 100% - 45px );
 } 

Result That I got

 .main-class  .page-title-wrapper{
     width: calc( 55%);
 } 

1 Answer 1

6

Use calc as below.

.main-class{
       .page-title-wrapper{
         width: calc(~"100% - 45px");
       } 
 }
1
  • give me 15 min to accept answer, Your solution is working Feb 14, 2018 at 6:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.