Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multi-column layout in CSS3
#1
Example:

<!DOCTYPE html>
<html>
<head>
  <title>Multi-column Layout Example</title>
  <style>
    /* Create a multi-column layout for the paragraph */
    p {
      column-count: 3;
      column-gap: 20px;
    }
  </style>
</head>
<body>
  <p>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed dapibus odio id facilisis iaculis.
    Pellentesque vel enim nec elit eleifend malesuada nec a erat.
  </p>
</body>
</html>

Explanation:

Multi-column layout (column-count) allows you to split the content of an element into multiple columns. In this example, the p element is divided into three columns, and a gap of 20 pixels is added between the columns.
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
Reply


Messages In This Thread
Multi-column layout in CSS3 - by Qomplainerz - 07-26-2023, 07:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  CSS Grid Masonry Layout Qomplainerz 0 664 07-26-2023, 07:54 PM
Last Post: Qomplainerz
  How to make a grid layout with CSS3 Qomplainerz 0 299 07-26-2023, 07:03 PM
Last Post: Qomplainerz

Forum Jump:


Users browsing this thread: 4 Guest(s)