Sppcode Live Chat Tutorial

Содержание
  1. Форма чата html css
  2. A Simple Web-Based Chat Box
  3. Simple Chat Box with Users’ Profile Pictures
  4. Frequently Asked Questions
  5. Conclusion
  6. Other Examples
  7. CSS Chat Widget
  8. Author
  9. Links
  10. CSS Direct Messaging
  11. Author
  12. Links
  13. Responsive Direct Messaging
  14. Author
  15. Links
  16. Simple CSS Web Chat
  17. Author
  18. Links
  19. Responsive CSS Chat
  20. Author
  21. Links
  22. Mobile CSS Chat Box
  23. Author
  24. Links
  25. HTML CSS HipChat Redesign
  26. Author
  27. Links
  28. CSS Chat UI With Button
  29. Author
  30. Links
  31. CSS Messaging App UI With Dark Mode
  32. Author
  33. Links
  34. CSS and HTML Reponsive iOS iMessage Chat
  35. Author
  36. Links
  37. Material CSS Messaging App Concept
  38. Author
  39. Links
  40. Responsive CSS Chat Widget
  41. Author
  42. Links
  43. WhatsApp in Pure CSS and JS
  44. Author
  45. Links
  46. Animated CSS Chat Bar Interaction
  47. Author
  48. Links
  49. CSS Direct Messaging Example
  50. Author
  51. Links
  52. Recommended Articles
  53. Top 18+ HTML CSS Chat Box Designs
  54. 1. Swanky Chatbox
  55. Author
  56. Made with
  57. 2. Chat UI
  58. Author
  59. Made with
  60. 3. chatbot template
  61. Author
  62. Made with
  63. 4. Draggable Chatbox
  64. Author
  65. Made with
  66. 5. Swanky Chatbox V2
  67. Author
  68. Made with
  69. 6. Stylish chat window design
  70. Author
  71. Made with
  72. 7. Live Chat
  73. Author
  74. Made with
  75. 8. Chatbox
  76. Author
  77. Made with
  78. 9. Navvy the navigational ChatBot!
  79. Author
  80. Made with
  81. 10. chat UI
  82. Author
  83. Made with
  84. 11. Direct Messaging
  85. Author
  86. Made with
  87. 12. [CSS] Chatbox
  88. Author
  89. Made with
  90. 13. A Fake Chatbox
  91. Author
  92. Made with
  93. 14. Minimal Chatbox
  94. Author
  95. Made with
  96. 15. Show Hide Chat Box With Minimize
  97. Author
  98. Made with
  99. 16. Talking to a 10 year old Simulator
  100. Author
  101. Made with
  102. 17. Html css Chat box Design
  103. Author
  104. Made with
  105. 18. Vue playground #2 – Chatbox
  106. Author
  107. Made with
  108. You may also like
  109. How to Create Embossed Text Effect using CSS
  110. Pure CSS button animation bigger on hover
  111. Menu Button Expand To Navigation Menu On Click
  112. Rainbow Mouse Trail
  113. HTML CSS image hover effects
  114. Bootstrap 4 drag and drop file upload with choose.
  115. Bluehost Hosting
  116. Examples
Читайте также:  Что такое java netbeans

Форма чата html css

This is what we’ve got so far. It doesn’t look like much, but we still need to style it. So, moving on to the CSS part of it.

@import URL('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap'); * < margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins,' sans-serif; >body < overflow: hidden; background: #c2b504; >#click < display: none; >label < position: absolute; right: 30px; bottom: 20px; height: 55px; width: 55px; background: -WebKit-linear-gradient(left, #2E3192, #1BFFFF); text-align: center; line-height: 55px; border-radius: 50px; font-size: 30px; color: #fff; cursor: pointer; >label i < position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: all 0.4s ease; >label i.fas < opacity: 0; pointer-events: none; >#click:checked ~ label i.fas < opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) rotate(180deg); >#click:checked ~ label i.fab < opacity: 0; pointer-events: none; transform: translate(-50%, -50%) rotate(180deg); >.wrapper < position: absolute; right: 30px; bottom: 0px; max-width: 400px; background: #fff; border-radius: 15px; box-shadow: 0px 15px 20px rgba(0,0,0,0.1); opacity: 0; pointer-events: none; transition: all 0.6s cubic-bezier(0.68,-0.55,0.265,1.55); >#click:checked ~ .wrapper < opacity: 1; bottom: 85px; pointer-events: auto; >.wrapper .head-text < line-height: 60px; color: #fff; border-radius: 15px 15px 0 0; padding: 0 20px; font-weight: 500; font-size: 20px; background: -WebKit-linear-gradient(left, #02AABD, #00CDAC); >.wrapper .chat-box < padding: 20px; width: 100%; >.chat-box .desc-text < color: #515365; text-align: center; line-height: 25px; font-size: 17px; font-weight: 500; >.chat-box form < padding: 10px 15px; margin: 20px 0; border-radius: 25px; border: 1px solid lightgrey; >.chat-box form .field < height: 50px; width: 100%; margin-top: 20px; >.chat-box form .field:last-child < margin-bottom: 15px; >form .field input, form .field button, form .textarea textarea < width: 100%; height: 100%; padding-left: 20px; border: 1px solid lightgrey; outline: none; border-radius: 25px; font-size: 16px; transition: all 0.3s ease; >form .field input:focus, form .textarea textarea:focus < border-color: #fc83bb; >form .field input::placeholder, form .textarea textarea::placeholder < color: silver; transition: all 0.3s ease; >form .field input:focus::placeholder, form .textarea textarea:focus::placeholder < color: lightgrey; >.chat-box form .textarea < height: 70px; width: 100%; >.chat-box form .textarea textarea < height: 100%; border-radius: 50px; resize: none; padding: 15px 20px; font-size: 16px; >.chat-box form .field button < border: none; outline: none; cursor: pointer; color: #fff; font-size: 18px; font-weight: 500; background: -WebKit-linear-gradient(left, #02AABD,#00CDAC); transition: all 0.3s ease; >.chat-box form .field button:active

Voila! Now let’s see what we’ve accomplished with the styling.

Читайте также:  Unity ml agents python

Awesome right? Feel free to play around with the codes and customize them to your taste. Click here to get started.

A Simple Web-Based Chat Box

This tutorial will use HTML and CSS3 to create a simple web-based chat design. Let’s get started, first, with the HTML.

        

Welcome, this is Appcode's Live Chat Tutorial

Exit Chat

We begin with the standard DOCTYPE, html, head, and body tags. Next, we’ll have three primary blocks: a simple menu, a chatbox, and a message input, all with their div and id.

Two paragraph elements will make up the #menu div. The first will be a welcome message to the user on the left, and the second will be an exit link on the right. For the layout, we’re using flexbox instead of floating elements.

* < margin: 0; padding: 0; >body < margin: 20px auto; font-family: "Lato"; font-weight: 300; >form < padding: 15px 25px; display: flex; gap: 10px; justify-content: center; >form label < font-size: 1.5rem; font-weight: bold; >input < font-family: "Lato"; >a < color: #0000ff; text-decoration: none; >a:hover < text-decoration: underline; >#wrapper, #loginform < margin: 0 auto; padding-bottom: 25px; background: #eee; width: 600px; max-width: 100%; border: 2px solid #212121; border-radius: 4px; >#loginform < padding-top: 18px; text-align: center; >#loginform p < padding: 15px 25px; font-size: 1.4rem; font-weight: bold; >#chatbox < text-align: left; margin: 0 auto; margin-bottom: 25px; padding: 10px; background: #fff; height: 300px; width: 530px; border: 1px solid #a7a7a7; overflow: auto; border-radius: 4px; border-bottom: 4px solid #a7a7a7; >#usermsg < flex: 1; border-radius: 4px; border: 1px solid #ff9800; >#name < border-radius: 4px; border: 1px solid #ff9800; padding: 2px 8px; >#submitmsg, #enter < background: #ff9800; border: 2px solid #e65100; color: white; padding: 4px 10px; font-weight: bold; border-radius: 4px; >.error < color: #ff0000; >#menu < padding: 15px 25px; display: flex; >#menu p.welcome < flex: 1; >a#exit < color: white; background: #c62828; padding: 4px 8px; border-radius: 4px; font-weight: bold; >.msgln < margin: 0 0 5px 0; >.msgln span.left-info < color: orangered; >.msgln span.chat-time < color: #666; font-size: 60%; vertical-align: super; >.msgln b.user-name, .msgln b.user-name-left < font-weight: bold; background: #546e7a; color: white; padding: 2px 4px; font-size: 90%; border-radius: 4px; margin: 0 5px 0 0; >.msgln b.user-name-left

What does it look like? Check out the screenshot below. Seems quite simple right? Well, as it should. But to bring this widget to life, you must add a bit of PHP and MySQL, and you’ll be good to go. Customize this design here on Codepen.

Simple Chat Box with Users’ Profile Pictures

The chat box is an interface that allows two or more people to exchange messages. The chat box is quite popular and can be found online. The chat box displays the user’s profile picture and the message contents. CSS can be used to customize this chat box.

We will make a chatbox where two people can share text messages. Consider a element as a wrapper for the chat messages. The height and width of the < div>must be specified.
Inside the container , define two . Next, add an to each that will float to the left. Next, add some text and the time the message was sent. Right, the time will float.

Finally, use the CSS clear attribute to remove the float so that the components do not overlap. To differentiate the chats, use a different backdrop color. Include some margin and padding as well. We’ve made a simple chat bubble where two users can share text messages.

       

Chatbox Tutorial By Appcode

what's up bro

10:00

Hello. How did you get my number

12:01

wats up, are you home?

12:30

Hello Tosin! You left your car keys.

02:00
 .container < width: 500px; height: 500px; background-color: #a6fbff ; box-shadow: 2px 1px 1px 1px rgba(0,0,0,0.2); padding-top: 3px; >.container h2 < font-family: calibri; color: blue; >img < border-radius: 50%; height: 50px; width: 50px; float: left; >.time < float: right; >.you < background-color: #cccccc; border-radius: 5px; padding: 10px; margin: 10px 0; >.you p < font-family: cambria; font-weight: bold; margin-left: 60px; font-size: 17px; >.other < background-color: #eeeeee; border-color: #dddddd; border-radius: 5px; padding: 10px; margin: 10px 0; >.other p < font-family: Cambria; font-weight: bold; margin-left: 60px; font-size: 17px; >.you:after, .other:after < content: ""; clear: both; display: table; >h2

So, here’s what that looks like:

Frequently Asked Questions

Conclusion

That’s it; you’ve successfully designed a Responsive Chat Box UI using simple HTML and CSS. I hope you found these examples helpful. If so, leave a comment below and check out our other posts. Thank you for stopping by the blog.

Other Examples

CSS chat box examples can be found all over the web. They are included in many social media platforms and enable communication between two users. It is easy to build a chat box using CSS. Below, we provide examples of how authors have created chat box designs with HTML and CSS. These examples come from codepen.io and around the web. Additionally, Feel free to use these examples in your project.

CSS Chat Widget

About Project

CSS Chat Widget

Author

CSS Direct Messaging

About Project

CSS Direct Messaging

Author

Responsive Direct Messaging

About Project

Responsive Direct Messaging

Author

Simple CSS Web Chat

About Project

Simple CSS Web Chat

Author

Responsive CSS Chat

About Project

Responsive CSS Chat

Author

Mobile CSS Chat Box

About Project

Mobile CSS Chat Box

Author

HTML CSS HipChat Redesign

About Project

HTML CSS HipChat Redesign

Author

CSS Chat UI With Button

About Project

CSS Chat UI With Button

Author

CSS Messaging App UI With Dark Mode

About Project

CSS Messaging App UI With Dark Mode

Author

CSS and HTML Reponsive iOS iMessage Chat

About Project

CSS and HTML Reponsive iOS iMessage Chat

Author

Material CSS Messaging App Concept

About Project

Material CSS Messaging App Concept

Author

Responsive CSS Chat Widget

About Project

Responsive CSS Chat Widget

Author

WhatsApp in Pure CSS and JS

About Project

WhatsApp in Pure CSS and JS

Author

Animated CSS Chat Bar Interaction

About Project

Animated CSS Chat Bar Interaction

Author

CSS Direct Messaging Example

About Project

CSS Direct Messaging Example

Author

Here is a set of articles on boxes and web layout technology.

Источник

Top 18+ HTML CSS Chat Box Designs

HTML CSS Chat Box Designs

Latest Collection of hand-picked free HTML CSS Chat Box Designs code examples.

1. Swanky Chatbox

Author

Made with

2. Chat UI

Author

Made with

3. chatbot template

Author

Made with

4. Draggable Chatbox

Author

Made with

5. Swanky Chatbox V2

Author

Made with

6. Stylish chat window design

Author

Made with

7. Live Chat

Author

Made with

8. Chatbox

Author

Made with

9. Navvy the navigational ChatBot!

Author

Made with

10. chat UI

Author

Made with

11. Direct Messaging

HTML CSS Chat Box Designs

Author

Made with

12. [CSS] Chatbox

Author

Made with

13. A Fake Chatbox

Author

Made with

14. Minimal Chatbox

Author

Made with

15. Show Hide Chat Box With Minimize

Author

Made with

16. Talking to a 10 year old Simulator

Author

Made with

17. Html css Chat box Design

Author

Made with

18. Vue playground #2 – Chatbox

Author

Made with

You may also like

Embossed Text Effect using CSS

How to Create Embossed Text Effect using CSS

Pure CSS button animation bigger on hover

Pure CSS button animation bigger on hover

Navigation Menu expand On Click

Rainbow Mouse Trail

Rainbow Mouse Trail

HTML CSS image hover effects

HTML CSS image hover effects

drag and drop file upload

Bootstrap 4 drag and drop file upload with choose.

Bluehost Hosting

bluehost-hosting

Examples

    1. 30 HTML and CSS table Examples
    2. 48+ CSS Checkboxes
    3. 20 CSS Toggle Switches
    4. Top 30+ CSS Radio Button Styles
    5. 20 Free CSS & JavaScript Select Boxes Snippets
    6. 28 CSS Loading Spinner Snippets
    7. 16+ Html CSS Styling Contact Form
    8. Top 10 CSS Blog Cards
    9. 40+ CSS Modal Windows
    10. 18 CSS Blockquotes
    11. 22 CSS Tooltips
    12. 10 CSS Border Examples
    13. Top 30 CSS Tabs
    14. 12 CSS Subscribe Forms examples
    15. File Upload Field Snippets

    Источник

Оцените статью