+ 1

How do I align this to the center?

27th Jun 2020, 3:27 AM
Ashwin Shrestha
Ashwin Shrestha - avatar
5 ответов
+ 5
Ashwin Shrestha Please don't use align attribute on html tags, it's obsolete HTML center element. It might not work on new browsers soon. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/center Use text-align: center css instead.
27th Jun 2020, 5:09 AM
Calviղ
Calviղ - avatar
+ 4
Ashwin Shrestha <style type="text/css"> video { text-align: center; width: 500px; } </style>
27th Jun 2020, 3:33 AM
Indira
Indira - avatar
+ 2
Ashwin Shrestha Create a div tag with align=center and put video tag inside the div tag as a child element.
27th Jun 2020, 4:17 AM
Azhagesanヾ(✿)
Azhagesanヾ(✿) - avatar
+ 1
Thanks
27th Jun 2020, 4:18 AM
Ashwin Shrestha
Ashwin Shrestha - avatar
0
Indira This doesn't work because i'm not trying to align text. I'm trying to align the entire video.
27th Jun 2020, 4:03 AM
Ashwin Shrestha
Ashwin Shrestha - avatar