Skip to content
doubtly

1 answer

You can add different background colors or images to each column using CSS by targeting individual columns with class selectors and applying the desired background styles. Here's an example:

.column:nth-child(1) {
  background-color: #f0f0f0;
}

.column:nth-child(2) {
  background-image: url("image.jpg");
  background-size: cover;
}

.column:nth-child(3) {
  background-color: #ddd;
}

In this example, the CSS code targets each column using :nth-child() selector and applies different background colors or images to each column.

Doubtly · 12 Jun 2023 Report
Was this answer helpful?

Your answer

Log in or create a free account to answer this question.