Styling Your ChatBot

  1. CSS Setup: Create a new file named styles.css in your project folder.

  2. Styling the Chat Container: Add the following code to your styles.css file:


body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

#chat-container {
  max-width: 400px;
  margin: 50px auto;
  border: 1px solid #ccc;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#chat-log {
  height: 300px;
  overflow: auto;
  border-bottom: 1px solid #ccc;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.message {
  margin: 5px 0;
}

  1. Linking CSS to HTML: In your index.html file, add the following line inside the <head> section to link your CSS file:

<link rel="stylesheet" href="styles.css">