make background for the whole page, without any margins and paddings Conversation Dialog…
Jump to turn (12)
- 1make background for the whole page, without any margins and paddings Conversatio
- 2how to add icons for each side of the messages in dialog
- 3logo is outside the chat block, how to adjust it
- 4how to make background endless, infinite on the bottom
- 5Is it possible to make it without image, just with color?
- 6how to make page suitable for mobile devices, so the width is adjusted
- 7this does not work
- 8I still se the same screen, it is not adjusted
- 9how to make vertical text aligment middle in .message
- 10how to add the logo nex to header
- 11I have added svg logo this way but it is not visible
- 12write the code for this
- User
make background for the whole page, without any margins and paddings
Conversation Dialog
/* General styling */ body { margin: 0; padding: 0; background-color: #e8e8e8; font-family: 'DM Sans',sans-serif; text-align: center; /* center align the title */ }
/* Chat container */ .chat { width: 80%; max-width: 500px; margin: 50px auto; background-color: rgb(255, 255, 255, 0.9); padding: 20px; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); }
/* Sender message */ .sender { margin-bottom: 10px; text-align: left; }
.sender .message { background-color: rgb(2,205,143, 0.6); color: black; padding: 10px; border-radius: 10px; display: inline-block; max-width: 70%; font-size: 14px; /* lower font size */ }
.sender .name { color: black; margin-right: 10px; font-size: 0px; }
/* Receiver message */ .receiver { margin-bottom: 10px; text-align: right; }
.receiver .message { background-color: #E0E0E0; /* replace with desired color */ color: black; padding: 10px; border-radius: 10px; display: inline-block; max-width: 70%; font-size: 14px; /* lower font size */ }