Home  »  CodeSnippets   »   How to Center a Video in CSS

How to Center a Video in CSS

Posted: February 7, 2022 | by Michael Bright

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.