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

ROW element #15926

Closed
leodluz opened this issue May 30, 2019 · 4 comments
Closed

ROW element #15926

leodluz opened this issue May 30, 2019 · 4 comments
Labels
[Block] Columns Affects the Columns Block [Block] Group Affects the Group Block [Type] Help Request Help with setup, implementation, or "How do I?" questions.

Comments

@leodluz
Copy link

leodluz commented May 30, 2019

Is your feature request related to a problem? Please describe.
image
Describe the solution you'd like
A row element, which is so common in bootstrap, would solve my problem.

Describe alternatives you've considered
Or maybe remove the lock for 1 column in the 'columns' element.
image

A clear and concise description of what you want to happen.
Avoid problems with clear: left and content alignment.

@roguewdesign
Copy link

Hi leodluz,

Have you considered using the Group block?

You could place your Columns within a Group which would wrap them in a div element. In addition, you could create a custom ROW CSS class for the Group.

.my-custom-row { overflow: hidden; clear: both; }

Something like that.

@leodluz
Copy link
Author

leodluz commented May 31, 2019

There are no group block!

image

@roguewdesign
Copy link

It may not be released yet, but if you install the Gutenberg Editor plugin, you should see it:

https://en-ca.wordpress.org/plugins/gutenberg/

@swissspidy swissspidy added [Block] Columns Affects the Columns Block [Block] Group Affects the Group Block [Type] Help Request Help with setup, implementation, or "How do I?" questions. labels May 31, 2019
@talldan
Copy link
Contributor

talldan commented Jul 22, 2019

Adding a link to the forum thread here:
https://wordpress.org/support/topic/container-block/

It's mentioned there that since #15210 was merged, the group block now renders with an inner div and it's not possible to add the row classname to the inner div.

It might be nice to allow users to specify a classname on the inner div through the block inspector (block sidebar). Although this is also using the group block for something it wasn't intended to be used for. There are Bootstrap block plugins available, which might be a better option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Columns Affects the Columns Block [Block] Group Affects the Group Block [Type] Help Request Help with setup, implementation, or "How do I?" questions.
Projects
None yet
Development

No branches or pull requests

5 participants