CSS
π― CSS break-after Property
The break-after CSS property is used in multi-column layouts, paged media, and text flow control to define whether a break should occur after an element.
It controls whether the next content continues in the same column or moves to a new one after the current element ends.
πΉ Where Is break-after Used?
-
Common Use Cases
- π Multi-column blog layouts
- π Newspaper and magazine-style designs
- π Print (paged media) layouts
- π Structured article formatting
πΉ break-after Values
- auto β Browser decides where to break
- column β Forces a new column after the element
- initial β Resets to default (auto)
π§© Basic Example
CSS
.columns {
column-count: 3;
}
p {
break-after: column;
}
In this example, the content is divided into 3 columns and every paragraph ends with a forced column break.
-
π§ Summary
- break-after defines whether a break occurs after an element.
- It is mainly used in multi-column and print-style layouts.
- column forces a new column after the element ends.
- auto lets the browser decide automatically.
