Courses / Build a Real‑Time Live Chat Widget with WebSockets
Lesson 5 of 9

Styling the Chat Widget – CSS Basics

5
▶

Video by StormeGraphics on YouTube · 8 min. We did not make this video and we do not host it — watching it here still counts as a view for the creator.

Watch the tutorial to learn flexbox layout for a scrollable message list and a sticky input bar. A frequent mistake is forgetting overflow-y: auto on the message container, which prevents scrolling when many messages accumulate.

The CSS you write now will be reused unchanged when the widget is embedded on any site, so keep class names generic (.chat-window, .chat-input). This makes the final embed clean and conflict‑free.

Start learning free

Sign in with your email, Google or GitHub. No password to remember. The same account carries your progress, your certificates and anything else you do with Nexgino later.

Sign in to continue

It takes about fifteen seconds.