Opened 4 years ago
Closed 14 months ago
#56181 closed defect (bug) (worksforme)
Video alignment off - items aligned left when they should align center
| Reported by: | justinclemente | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | close |
| Cc: | Focuses: |
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
@
22 months ago
@justinclemente Is this still an issue? or can the ticket be considered closable?
#3
@
14 months ago
- Milestone Awaiting Review
- Resolution → worksforme
- Status new → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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; }