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

Add {float:right} to group block #47114

Open
burnuser opened this issue Jan 12, 2023 · 1 comment
Open

Add {float:right} to group block #47114

burnuser opened this issue Jan 12, 2023 · 1 comment
Labels
[Block] Group Affects the Group Block [Type] Enhancement A suggestion for improvement.

Comments

@burnuser
Copy link

As suggested in core https://core.trac.wordpress.org/ticket/57439 and advised to report it here:

Since group block has now a width control and justification, it can float like an image block!

The effect can be achieved with an individual defined CSS class (maybe in WP 6.2 site editor styles or a plugin like Simple CSS), for example:

.sidebox {float:right}

=> Added as additional CSS class "sidebox" to the group block in question.

But with such a really little CSS part and a simple check-box in the user interface in block inspector - according to a manual set group-width smaller than content-width - it would be a quick and easy way to deliver a completely new feature like well known side-boxes (Author-info, fact sheet, ... ) in magazines!

@kathrynwp kathrynwp added [Block] Group Affects the Group Block [Type] Enhancement A suggestion for improvement. labels Jan 12, 2023
@burnuser
Copy link
Author

Meanwhile I discovered, that not even a custom CSS class is necessary, because the already in WordPress for image aligning used standard CSS class alignright would do the job.
The only missing part is an option in the user interface to allow group blocks floating!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Group Affects the Group Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants