Hello there -
I have added a video using embed code and placed inside a content modal. However the video does not display in the centre… is there a way to force central alignment?

Thank you
Hello there -
I have added a video using embed code and placed inside a content modal. However the video does not display in the centre… is there a way to force central alignment?

Thank you
Hi @kumararran,
Please try to wrap the iframe in a div with alignment like this:
<div style="text-align: center;"><iframe src="http://player.vimeo.com/video/67051688" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></div>
Change to your iframe code.
Hope this helps.
Thank you for your reply…
Here is the iframe code i am using…
<div style="padding: auto; line-height: ; text-align: center;"><p><iframe src="https://player.vimeo.com/video/354217177" width="640" height="360" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe></div>
I think it is the same as yours?
Hey @kumararran,
Set the Modal’s Content Max Width the same as the video width. You’ll see why in the video tutorial below:
Hope that helps.
Easy fix! Thank you Christian
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.