* { margin: 0; padding: 0; box-sizing: border-box; } header { display: flex; align-items: center; background-color: #3ce4fa; padding: 15px; } header img { /* Original width & height is 70px */ width: 200px; height: 200px; } header h1 { margin-left: 10px; font-size: 28px; color: white; } main { display: flex; justify-content: space-between; margin-top: 20px; margin-bottom: 20px; } .user-story { flex-basis: 30%; margin-left: 20px; } .user-story h2 { margin-bottom: 10px; } textarea { width: 100%; height: 200px; padding: 10px; border: 1px solid #ccc; border-radius: 5px; resize: none; margin-bottom: 10px; } table { flex-basis: 60%; margin-right: 20px; border: 1px solid #ccc; border-radius: 5px; overflow-y: scroll; /* To make the table scrollable */ height: 200px; /* To match text area size */ display: block; border-collapse: separate; /* Added to separate the border between the headers and the data cells */ border-spacing: 0; /* Added to remove the extra space between the border */ } #breakdown-table { width: 100%; } #breakdown-table th, #breakdown-table td { border: 1px solid #ddd; padding: 8px; text-align: left; } #breakdown-table th:first-child { border-left: none; } #breakdown-table th:last-child { border-right: none; } #breakdown-table th:not(:first-child) { border-left: none; border-right: none; } #breakdown-table th div { border-bottom: 1px solid #ddd; padding: 8px; } #breakdown-table td div { padding: 8px; } #breakdown-table thead th { background-color: #f2f2f2; } #breakdown-table tbody tr:nth-child(even) { background-color: #f2f2f2; } #breakdown-table tbody tr:hover { background-color: #ddd; } #clear-btn { background-color: #3ce4fa; color: white; border: none; border-radius: 5px; padding: 10px; cursor: pointer; } #breakdown-btn { background-color: #3ce4fa; color: white; border: none; border-radius: 5px; padding: 10px; cursor: pointer; /* Added these 2 lines to make button appear at btm-right of user story contents. Not sure if this is the correct way to do it, but it looks alright for me? */ position: absolute; left: 700px; } .user-story-list { flex-basis: 60%; margin-right: 20px; } .user-story-list h2 { margin-bottom: 10px; } .scrollable-box { height: 200px; overflow-y: auto; border: 1px solid #ccc; border-radius: 5px; } #user-story-ul { list-style: none; padding: 10px; } .back-Btn-Container { display: flex; justify-content: end; align-items: end; padding: 0 20px; margin-top: 20px; } .buttons-container { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; margin-top: 20px; } .back-btn { background-color: #555; color: #fff; padding: 10px 20px; border: none; border-radius: 5px; font-size: 16px; cursor: pointer; margin-right: 150px; width: 110px; height: 40px; }