Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

How to add video background in html and css

#background-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
}
Source by blog.hubspot.com #
 
PREVIOUS NEXT
Tagged: #How #add #video #background #html #css
ADD COMMENT
Topic
Name
9+3 =