Problem/Motivation
Background media not covering the content in appropriate way as it appear scaled up and not centered, this issue appear for all types (image, remote video, local video).
Proposed resolution
Using CSS object-fit property to specify how an <img> or <video> should be resized to fit its container. This property tells the content to fill the container in a variety of ways; such as "preserve that aspect ratio" or "stretch up and take up as much space as possible".
Also, it's better to use object-fit-polyfill (polyfill for browsers that don't support the object-fit CSS property) for old browsers as it supports IE 9+, iOS 7-, and Android 4.4.
Test Varbase Media Header page - Image
Test Varbase Media Header page - Local Video
Test Varbase Media Header page - Remote Video Vimeo
Test Varbase Media Header page - Remote Video Youtube
Test Varbase Media Header page - Standard
Test Varbase Media Header page - Media Header but no media
Tablet sizes






Mobile sizes


















Comments
Comment #2
rajab natshahComment #3
rajab natshahComment #4
rajab natshahComment #7
rajab natshahComment #8
rajab natshahComment #9
rajab natshahComment #10
rajab natshahComment #11
rajab natshahComment #12
rajab natshahComment #13
rajab natshahComment #14
rajab natshahComment #15
rajab natshahComment #16
rajab natshahComment #17
rajab natshahComment #18
rajab natshahComment #19
rajab natshah