table { margin-top: 30px; border-collapse: collapse; width: 100%; table-layout:fixed; } th { background-color: #f2f2f2; } .today { background-color: rgb(202, 0, 0); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: Arial, sans-serif; line-height: 1.6; background-color: #f4f4f4; margin: 0; padding: 0; } header { background-color: #333; color: #fff; text-align: center; padding: 1em 0; position: fixed; width: 100%; top: 0; left: 0; } header h1 { margin: 0; } form { margin-top: 20px; text-align: center; } form label { margin-right: 10px; } .sup-callback { width: 300px; } form input, form select { width: 100px; padding: 5px; margin-right: 10px; } button, a, .btn { padding: 7px 15px; background-color: #292929; color: #fff; border: none; cursor: pointer; text-decoration: none; } .first-main { margin-top: 150px; } main { max-width: 1000px; margin: 20px auto; padding: 20px; background-color: #fff; border-radius: 5px; } main section { margin-bottom: 20px; } main h2 { margin-bottom: 10px; } main p { color: #555; } .main-calendar { min-height: 500px; } th, td { text-align: center; width: 100px; height: 50px; transition: width 0.3s ease, height 0.3s ease; cursor: pointer; border: 1px solid #dddddd; padding: 8px; } td { overflow: hidden; white-space:nowrap; text-overflow: ellipsis; } .clicked { height: auto; white-space:normal; }