-2

I have a wrapper with a class that sets it's height based on a calc() wich is working smoothly on all browsers except in firefox. This is the snippet

  width: 340px;

  float: left;
  overflow:hidden;
  overflow-y:scroll;
  scrollbar-width: thin;

  height: calc(100% - 120px);

Any idea of what's happening or what I'm missing out?

Javier Ortega
  • 147
  • 10
  • Does this answer to your question? https://stackoverflow.com/questions/43029822/calc-not-working-in-firefox – xKobalt Mar 04 '20 at 12:27

1 Answers1

1

try with vh

height: calc(100vh - 120px);
Lalji Tadhani
  • 14,041
  • 3
  • 23
  • 40