MOCKSTACKS
EN
Questions And Answers

More Tutorials









CSS Multiple Columns

CSS allows to define that element contents wrap into multiple columns with gaps and rules between them.

Example

.content {
-webkit-column-count: 3; 
-moz-column-count: 3; 
column-count: 3;
}

Lorem, ipsum dolor sit amet consectetur adipisicing elit. Quam, ducimus modi, reiciendis consequuntur vel non autem consequatur minus quae inventore dolor amet deleniti obcaecati reprehenderit porro voluptatum. Porro reiciendis accusamus voluptatem vero. Excepturi, consequuntur?Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid natus vel eos tenetur eaque fugit quam, tempora commodi reiciendis quas in optio ex quo ullam? Necessitatibus soluta a perferendis qui doloribus quidem debitis autem!


Basic example

section {
 columns: 3;
 column-gap: 40px;
 column-rule: 2px solid gray;
}

Lorem, ipsum dolor sit amet consectetur adipisicing elit. Quam, ducimus modi, reiciendis consequuntur vel non autem consequatur minus quae inventore dolor amet deleniti obcaecati reprehenderit porro voluptatum. Porro reiciendis accusamus voluptatem vero. Excepturi, consequuntur?Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid natus vel eos tenetur eaque fugit quam, tempora commodi reiciendis quas in optio ex quo ullam? Necessitatibus soluta a perferendis qui doloribus quidem debitis autem! Lorem ipsum dolor sit amet consectetur adipisicing elit. Explicabo maiores accusantium nesciunt, dolor rem officiis exercitationem voluptatibus sed velit illo ad dolores ut quos ducimus. Placeat, explicabo obcaecati? Ratione ipsam aperiam dolor ad eius! Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste, excepturi? Quas alias autem odio inventore debitis, maiores quaerat harum eveniet distinctio sed dicta quisquam vel? Odio animi quos expedita architecto iure soluta itaque perspiciatis eius alias enim eum autem reiciendis suscipit doloremque officia numquam, ipsa error hic at in quae reprehenderit aliquam sequi. Nisi, fuga libero.






Conclusion

In this page (written and validated by ) you learned about CSS Multiple Columns . What's Next? If you are interested in completing CSS tutorial, your next topic will be learning about: CSS Clippling.



Incorrect info or code snippet? We take very seriously the accuracy of the information provided on our website. We also make sure to test all snippets and examples provided for each section. If you find any incorrect information, please send us an email about the issue: mockstacks@gmail.com.


Share On:


Mockstacks was launched to help beginners learn programming languages; the site is optimized with no Ads as, Ads might slow down the performance. We also don't track any personal information; we also don't collect any kind of data unless the user provided us a corrected information. Almost all examples have been tested. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. By using Mockstacks.com, you agree to have read and accepted our terms of use, cookies and privacy policy.