요소가 분할되어야 하는 열의 수를 지정하려면 column-count 속성을 사용하십시오.
다음 코드를 실행하여 4개의 열이 있는 column-count 속성을 구현할 수 있습니다.
예시
<!DOCTYPE html> <html> <head> <style> .demo { column-count: 4; } </style> </head> <body> <div class = "demo"> This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. </div> </body> </html>