add code to center

Solved
Naor
Explorer
131 1 13

hey everyone , i have this code

<video controls="controls" style="max-width: 100%; height: auto;">

  <source src="your_url_goes_here" type="video/mp4" />

Your browser does not support our video.

</video>

i want add him small code that will put the video in the center 

0 Likes
Wahab_Ahmad
Shopify Partner
698 110 163

This is an accepted solution.

@Naor,

 replace this code with your code

 

<div style="text-align:center;">
<video controls="controls" style="max-width: 100%; height: auto;">

<source src="your_url_goes_here" type="video/mp4" />

Your browser does not support our video.

</video>
</div>

 

if useful marks my post like and accept solution

WesamS
Tourist
6 0 2

Thanks Wahab Ahmed for your solution I had the same problem and your code solved it 

0 Likes