0 votes
377 views
in HTML by (2.2k points)
edited
How do you add spacing between the columns in a 3-column layout?

1 Answer

0 votes
by (98.9k points)
edited

To add spacing between the columns, you can use CSS margin or padding properties. Here's an example:

 

.column {
  margin-right: 10px; /* Adds spacing between columns */
}

 

In this example, the CSS code adds a margin-right of 10 pixels to each column, creating spacing between them. Adjust the value as needed for the desired amount of spacing.

Related questions

0 votes
1 answer 319 views
0 votes
1 answer 912 views
0 votes
1 answer 960 views
0 votes
1 answer 382 views
0 votes
1 answer 279 views
0 votes
1 answer 364 views

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!

Recent Badges

Doubtly Earned a badge
Doubtly Earned a badge
MrRam Earned a badge

5.7k questions

5.1k answers

108 comments

648 users

...