Colorful Rectangles .rectangle { width: 150px; height: 400px; display: inline-block; margin-right: 0; /* Remove spacing between rectangles */ } /* Define colors for each rectangle */ .rectangle:nth-child(1) { background-color: #ff6347; /* Tomato */ } .rectangle:nth-child(2) { background-color: #66cdaa; /* MediumAquamarine */ } .rectangle:nth-child(3) { background-color: #4682b4; /* SteelBlue */ } .rectangle:nth-child(4) { background-color: #ffa07a; /* LightSalmon */ }