A chat application is a great way to communicate with others in real-time. The chat UI is built with an ordered list, ol, containing a series of list items, li. Each list item contains an (optional) avatar and a chat entry.
KC
Hey @Mads, can you please help me with building the UI for a chat application? 🙂
I sure can! 👍
First you need an ordered list, <ol>. Then you add the entries as <li>-tags.
KC
How do I know who is who?
You add a value-attribute to each entry. A value of 1 is the first person (other), a value of 2 is the second. You can even add more people if you want to.
With opposite color-scheme
KC
Hey @Mads, can you please help me with building the UI for a chat application? 🙂
I sure can! 👍
First you need an ordered list, <ol>. Then you add the entries as <li>-tags.
KC
How do I know who is who?
You add a value-attribute to each entry. A value of 1 is the first person (other), a value of 2 is the second. You can even add more people if you want to.
With right-to-left
KC
Hey @Mads, can you please help me with building the UI for a chat application? 🙂
I sure can! 👍
First you need an ordered list, <ol>. Then you add the entries as <li>-tags.
KC
How do I know who is who?
You add a value-attribute to each entry. A value of 1 is the first person (other), a value of 2 is the second. You can even add more people if you want to.