Skip to content
doubtly

1 answer

To stack the columns vertically on smaller screens, you can use CSS flex-direction. Here's an example:

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
}

In this example, the CSS code applies a media query and sets flex-direction: column; to the container. This makes the columns stack vertically on screens with a maximum width of 768 pixels.

Doubtly · 12 Jun 2023 Report
Was this answer helpful?

Your answer

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