sanjar-notes / frontend

The basics - HTML, CSS, Javascript, browser APIs, performance
3 stars 0 forks source link

object-position CSS propert (justify video to left if resolution dont match) #94

Open sanjarcode opened 1 year ago

sanjarcode commented 1 year ago

https://developer.mozilla.org/en-US/docs/Web/CSS/object-position "positions stuff that CSS canonically cannot"

use case: object-position CSS propert (justify video to left if resolution dont match)

before (not so good)

image image

     

better object-position: left

video { object-position: left; }

image