I am implementing a chat system in my web app and I am showing the message list (where new messages will be appended below) and a message box where the user can type in their messages.

The current issue I am facing is that the message box gets pushed down the screen as I add new messages to the list (appended to bottom of last row).
How can I fix the position of the message box on the screen so that it doesn’t get pushed down?
To clarify, the message box will always be below the last message in the list. This means that I would need the page to auto scroll so that the message box will always stay in position i.e. in the center of the screen
As you’ve not shared any markup, I’ve made one demo of mine…So inorder to stop your input box pushed down, you need to use
overflow-y: scroll;on your message box and give it a fixed height to it like this : My FiddleHTML
CSS