Opened 4 years ago
Closed 8 months ago
#56181 closed defect (bug) (worksforme)
Video alignment off - items aligned left when they should align center
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | General | Keywords: | close |
| Focuses: | Cc: |
Description
All video elements at our website (ncchagerstown.org) are aligning left when they should align center. Any help is greatly appreciated!
Change History (3)
#2
@
17 months ago
@justinclemente Is this still an issue? or can the ticket be considered closable?
#3
@
8 months ago
- Milestone Awaiting Review deleted
- Resolution set to worksforme
- Status changed from new to closed
I agree with the recommendation to close. To me this seems also like a situation with a specific site. That might not be the case if we can get more details though, we can always reopen a ticket. For now, lets close and progress it though.
Note: See
TracTickets for help on using
tickets.
Thanks for the report! Welcome to WordPress Trac!
This might have fit better in the support forums. I could not figure out how you have these margins added at the end of the global styles:
.wp-block-audio{margin: 0 0 1em 0;} .wp-block-table > table{margin: 0 0 1em 0;} .wp-block-video{margin: 0 0 1em 0;} .wp-block-embed{margin: 0 0 1em 0;}Your theme is apparently Twenty Twenty (or a child theme based on it).
As a quick fix, to override the styles above for any of these blocks that you choose to center, you could go to the Customizer and find Additional CSS. Then paste the following and click Publish:
figure.aligncenter { margin-left: auto; margin-right: auto; }Or if you always want these blocks centered, without choosing the alignment from the block toolbar, you could use this:
.wp-block-audio, .wp-block-video, .wp-block-embed { margin-left: auto; margin-right: auto; }