0 votes
103 views
in HTML by (2.2k points)
edited
How do you align the columns horizontally using CSS?

1 Answer

0 votes
by (98.9k points)
edited

To align the columns horizontally within the container, you can use CSS flexbox. Here's an example:

 

.container {
  display: flex;
  justify-content: space-between;
}

 

In this example, the CSS code applies the display: flex; property to the container and justify-content: space-between; property to evenly distribute the columns with space between them. This creates a horizontal alignment for the columns.

Related questions

0 votes
1 answer 99 views
0 votes
1 answer 77 views
0 votes
1 answer 85 views
0 votes
1 answer 92 views
0 votes
1 answer 83 views
0 votes
1 answer 62 views
asked Jun 12, 2023 in HTML by radhe (2.2k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

535 users

...