Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8378355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:54:41+00:00 2026-06-09T15:54:41+00:00

The Less compilers that I’m using ( OrangeBits and dotless 1.3.0.5 ) are aggressively

  • 0

The Less compilers that I’m using (OrangeBits and dotless 1.3.0.5) are aggressively translating

body { width: calc(100% - 250px - 1.5em); }

into

body { width: calc(-151.5%); }

Which is obviously not desired. I’m wondering if there is a way to signal to the Less compiler to essentially ignore the attribute during compilation. I’ve searched through the Less documentation and both compilers’ documentation, and I could not find anything.

Does Less or a Less compiler support this?

If not, is there a CSS extender that does?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T15:54:42+00:00Added an answer on June 9, 2026 at 3:54 pm

    Less no longer evaluates expression inside calc by default since v3.00.


    Original answer (Less v1.x...2.x):

    Do this:

    body { width: calc(~"100% - 250px - 1.5em"); }
    

    In Less 1.4.0 we will have a strictMaths option which requires all Less calculations to be within brackets, so the calc will work “out-of-the-box”. This is an option since it is a major breaking change. Early betas of 1.4.0 had this option on by default. The release version has it off by default.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for Java-based Less CSS compilers. On Github, I have stumbled across
I write my CSS with Lesscss using it on client side (with compiler less.js).
I am using less php and want to implement an uncompiled version of the
It is clear that cross compilers will not be allowed by the Apple App
I know that compilers use __STDC__ to indicate that a compiler is standard C
We know that compilers are getting better and better at optimising our code and
I'm developing cross-platform project that would support : Four C++ compilers - GCC, MSVC,
I have a make file of, more or less, the following structure that compiles
I see that the less.app (on the mac) supports backwards importing In LESS CSS
I want to start using LESS instead of regular CSS. I've been reading the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.