Home  »  CodeSnippets   »   How to Center a Video in CSS

How to Center a Video in CSS

Posted: February 7, 2022 | by Site Host

video {
    margin-left: auto;
    margin-right: auto;
    display: block
}

Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.

Share it!

See also  Get Rid of Arrows in Number Input