Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Css Columns</title>
</head>
<body>
<div class="columns">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam atque beatae distinctio eius eligendi, fuga illum molestiae odio repudiandae? Accusantium adipisci, dicta esse et fugit impedit in sapiente? Ab aliquam animi blanditiis culpa dolore eligendi enim error eveniet explicabo facere fuga fugiat illo ipsum laboriosam libero maiores non, optio perspiciatis possimus quaerat quam quasi quia quis reiciendis rem reprehenderit rerum similique sit tempore totam unde veniam vero vitae! Ab cum doloremque et explicabo iure maiores nemo non perspiciatis vitae voluptatum!
</div>
<style>
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
margin: 0;
}
.columns {
max-width: 50%;
column-count: 3;
column-gap: 3rem;
}
</style>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment