Is it possible to use the negative value of a variable?
See original GitHub issueSo if I have:
@value button-size: 55px;
Can I do something like:
position: absolute;
left: -button-size;
Issue Analytics
- State:
- Created 7 years ago
- Reactions:20
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Can you have a negative variable in algebra (not to ... - Quora
No you cannot because the negative sign in front of any variable is the coefficient of the variable which is (-1). For example:...
Read more >How to Multiply a Negative Variable With a Positive Variable
Add a negative sign to the answer. A negative variable times a positive variable will produce a negative product. For example, -x *...
Read more >Using negative CSS Custom Properties - Stack Overflow
As of this posting, March 2018, the only way to use negative custom properties is by multiplying it by -1 with the calc...
Read more >Getting Rid of Negative Variables (Simplifying Math) - YouTube
Solving equations with negative variables made easy with this quick tutorial.
Read more >Negative numbers, variables, number line - Khan Academy
Normally, to the left of the zero are negative numbers and to the right of the zero are positive numbers in number line,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I haven’t tried this, but you might be able to use
postcss-calc
and do:You can achieve that with CSS variables: