Question: / * * * * * * * * * * * * * bookings page * * * * * * * * *

/************* bookings page *************/
/* TO-DO:
- the contents of the booking-page will be 600px wide, and all content centered within the available space.
- text will have a size of 18px.
- there will be 12px of space below the day-selectors, and 20px of space between each list item. List items are 60px wide.
- List items & the small-button elements will have a solid black border that is 1px wide. Small-buttons will also have 5px of space between the border and the content.
- items tagged with .top-margin will have 24 px of space above, and 12px of space below.
- the "clear days" button will be 200px wide.
- any element tagged with the .clicked class will turn mustard yellow. **This will be very important for your JavaScript.**
- all items within the page will be centered within their available space.
*/
/* Container for the booking page */
.booking-page {
width: 600px;
margin: 0 auto;text-align: center; /* Center text */
padding: 20px; /* Optional: padding inside the container */
}
.booking-page p,.booking-page li {
font-size: 18px;
margin: 0;
}
.day-selectors {
margin-bottom: 12px; /* Space below day-selectors */
list-style-type: none; /* Remove default list styling */
padding: 0; /* Remove default padding */
display: flex; /* Use flexbox for layout */
justify-content: center; /* Center items horizontally */
gap: 20px; /* Space between items */
}
.booking-page li {
width: 60px;
margin-bottom: 20px; /* Space between list items */
border: 1px solid black;
}
.small-button {
border: 1px solid black;
padding: 5px;
}
.top-margin {
margin: 24px 012px 0; /* Space above and below top-margin elements */
}
.clear-days-button {
width: 200px;
}
.clicked {
background-color: #E5AF42;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!