Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about sass-variables

Read more about sass-variables

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - sass-variables

Sass compiling and adding spaces between variables

I have some Sass code: margin-top: -($height+40)#{$unit}; that compiles and outputs "-140 vh" and not "-140vh". It's basically adding a space. I think I am using some old code. Wha...
test-img

kurrle

css

sass

sass-variables

Votes: 0

Answers: 1

Latest Answer

It's better to use numbers with their units, like the following code. More information: https://sass-lang.com/documentation/operators/numeric $height: 100vh; margin-top: -($height+40); But if there's...
test-img

Amirreza Noori

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved