79713416

Date: 2025-07-24 13:20:38
Score: 1
Natty:
Report link

Both height: 100vh; and height: calc(100vh); look similar, but there can be a small difference in behavior on some browsers, especially on mobile.

height: 100vh; sets the element height to 100% of the viewport. But on some mobile browsers, it may include the browser's address bar, causing extra space or scroll.

height: calc(100vh); is usually used for calculations like calc(100vh - 60px), but even using calc(100vh) alone can help fix layout issues in some browsers because it forces the browser to reflow or re-calculate the value.

I Mean :-

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dnyanesh Badave