.scroll-segment-area { position: fixed; top: 2.5cm; left: 0; width: 100%; bottom: 4cm; overflow: auto; overflow-x: hidden; } .ios { top: 3.3cm; } .md { top: 3.3cm; } .keyboard-closed { bottom: 4cm; } .keyboard-opened { bottom: 1.5cm; }