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%);
 } 
4

Use calc as below.

.main-class{
       .page-title-wrapper{
         width: calc(~"100% - 45px");
       } 
 }
  • give me 15 min to accept answer, Your solution is working – Murtuza Zabuawala Feb 14 '18 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.