Holy Family & CCTN - Orlando, FL

Homepage video needs to fit 100% width, but stay ratio (yes it will cut off some of the down carrot, but this is their choice and they need to see it this way.)

Assigned to
Kyle Sullivan, Web Development at Diocesan Kyle S.

Comments & Events

Kyle Sullivan, Web Development at Diocesan
I updated /sass/site/primary/home/_hero.scss in the following way. This seems to be a reasonable compromise between being fold-focused and having a fixed aspect ratio (although there is a bit of an overhang at the bottom of the video at desktop size).
.page-template-homepage {
  .site-main {
    .homeHero {
      …
      .heroImage, .heroVideo {
        …
        video {
          width: 100%;
          height: auto;
        }
      }
Kyle Sullivan, Web Development at Diocesan
Kyle Sullivan completed this to-do.
Kyle Sullivan, Web Development at Diocesan
I also needed to add font-size: 0; to .heroVideo. This workaround makes no sense and shouldn't work, but as far as I can tell, it works, and it works across browsers.