#client_chatcontainer { position: absolute; top: 73%; height: 27%; width: 100%; background-image: url("images/chatbox.svg"); background-size: cover; background-repeat: no-repeat; } #client_name { display: none; top: 5%; padding: 0px 10px; height: 20%; border-radius: 3px; position: absolute; } #client_chat { font-size: 1em; display: none; width: 100%; margin: auto; height: 90%; top: 20%; border-radius: 4px; position: absolute; word-break: keep-all; word-wrap: break-word; overflow-wrap: break-word; text-align: left; overflow: hidden; scroll-behavior: smooth; } #client_chat p { margin: 4px; padding: 5px 10px; color: white; }