benkaminski.com is thinking ...



Posts Tagged With: “div background video”


I needed a HTML5 video background to appear as the header on my web page. Did I mention that the page was responsive (Bootstrap) and the video needed to scale to width without destroying the aspect ratio, oh and that the containing div has a FIXED HEIGHT!!! Yeah, fun stuff considering I had never attempted this before. So, with some HTML5 and CSS3 trickery… I was able to accomplish this without having to use JavaScript at all! I mean, isn’t that the point of HTML5?

Read More




Copyright © 2009 - 2023 benkaminski.com - Privacy Policy