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

Gutenberg: CSS issue with aligning block left or right #350

Open
paaljoachim opened this issue Nov 6, 2018 · 1 comment
Open

Gutenberg: CSS issue with aligning block left or right #350

paaljoachim opened this issue Nov 6, 2018 · 1 comment

Comments

@paaljoachim
Copy link

paaljoachim commented Nov 6, 2018

This is a sense is continuing the responsive Gutenberg issue. The responsive-embeds is added to the child theme functions file. #349

Centering a video embed brings block to center of screen.

Aligning block left as seen inside Gutenberg:
screen shot 2018-11-06 at 14 31 10

As seen on the frontend:
screen shot 2018-11-06 at 14 32 10

I am not sure if this is something that needs to be added to the parent Beans theme or if this belongs in the child theme.


WordPress/gutenberg#11448

Thanks for the report.

I don't see any issue from the screenshots, that's just how float positionning works . If there's enough place, you image or any other block will show up next to the floated item. The difference is that the available width in the frontend and the backend is not the same (The theme editor styles could align the widths).

I suggest adding a custom className to your second image and apply

.my-image {
   clear: both;
}
@christophherr
Copy link
Member

@paaljoachim
Thank you for testing all the things Gutenberg.
I'm not sure about this specific issue but I'd say we have to add some general Gutenberg styling/support to the framework.

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

No branches or pull requests

2 participants