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

how to center align a video ? #38

Open
berlin2123 opened this issue Mar 25, 2024 · 3 comments
Open

how to center align a video ? #38

berlin2123 opened this issue Mar 25, 2024 · 3 comments

Comments

@berlin2123
Copy link

both align or class not work for videos

:class: align-center
:align: center
@berlin2123
Copy link
Author

berlin2123 commented Mar 25, 2024

Temporarily solved by adding custom.css

add lines to custom.css:

/* center video */
video.align-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

add a class video:

.. video:: _static/video.mp4
    :width: 600
    :class: align-center

@12rambau
Copy link
Member

"align" is a image directive keyword and his not supported by the video one. The full list of supported options is decribed in the documentation:
https://sphinxcontrib-video.readthedocs.io/en/latest/quickstart.html#options

If you want to add an extra one I'll be happy to review a PR.

@berlin2123
Copy link
Author

No idea on how to achieve alignment. The way to change CSS seems to be a matter of theme, not implemented here.

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

No branches or pull requests

2 participants