+ 1
How do I align this to the center?
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.
+ 4
Ashwin Shrestha
<style type="text/css">
video {
text-align: center;
width: 500px;
}
</style>
+ 2
Ashwin Shrestha Create a div tag with align=center and put video tag inside the div tag as a child element.
+ 1
Thanks
0
Indira
This doesn't work because i'm not trying to align text. I'm trying to align the entire video.