SCSS (sass) calculation: #{}

Viewed 27694

i'm quite confused at the moment when it comes to calculating a font-size

this is the normal calculation I already use.

font-size: #{($font-size*0.7) / $em}em

What I wanna do now is divide an entire statement like the one above with another one … sounds complicated I know.

So I have #{($font-size*0.7) / $em} And I have #{($font-size*0.8125) / $em}

I want to devide those two values now …

So font-size: #{($font-size*0.7) / $em} / #{($font-size*0.8125) / $em}em.

But that doesn't work. Any idea how I do a calculation like that with SASS?

2 Answers
Related