0

Here is my pen:codepen.io/JFrankParnell/pen/bNGQrQ I'm trying to work with variables, only

 #{$containwidth}px;

is working. Using #{$containwidth}%; trying to use percentages or math either will give compile errors or isnt working.

I have given the #control styles to show what I expected each of the test scss to produce.

Doug Cassidy
  • 1,796
  • 3
  • 17
  • 28

1 Answers1

0

you can use percentage.

width: percentage($othervar / $containwidth);

full pen : http://codepen.io/bravocado/pen/XJWyYK

here is the doc : http://sass-lang.com/documentation/Sass/Script/Functions.html#percentage-instance_method

hope it helps. :)

bravocado
  • 113
  • 1
  • 7