changed css to avoid unneccessary scrolling

changed css to avoid unneccessary scrolling