Created
March 2, 2023 18:30
-
-
Save aligator28/9e2d1d500aa9852da3fe953f8b90b4c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
контейнер для непропорционального контента | |
.main-block__video { | |
position: relative; | |
width: 100%; | |
height: 0; | |
padding-bottom: calc(100% / 1.78); // Just proportions of video 16:9 (You can use 100% and You shoud divide width on 1.78 (40% / 1.78 = 22.47%) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment