Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-multicol] column-span: <integer> #11474

Open
scottkellum opened this issue Jan 10, 2025 · 0 comments
Open

[css-multicol] column-span: <integer> #11474

scottkellum opened this issue Jan 10, 2025 · 0 comments

Comments

@scottkellum
Copy link

In CSS Multicolumn, column-span it would be useful to have the ability to create content that spans a specified number of columns using an . It is common to have images span two or three text columns in print.

I would expect this to work where the vertical and starting position coincides with where the block element falls in the column, then clears subsequent adjacent columns at that position of content to expand into like a float. This would likely be commonly used with break-before: column; height: 100%; styles to create a full height block.

Example of a print layout with images spanning two columns:

print layout example showing images spanning two text columns

It is possible to hack this functionality into some browsers (Chrome) by using <figure> and ::before and ::after pseudo elements alongside break-before and break-after, thus clearing columns for the figure to expand into. https://codepen.io/scottkellum/pen/qBQYyGO?editors=1100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant