Had a hard time finding any answers on how to maintain a specific, responsive aspect ratio for Brine Family index sections with background videos. My client has a full width background video that needs to avoid cropping, and this was the best solution I could figure out.
Does anyone know how to calculate the padding for other aspect ratios, like 3:4?
I will post a link to the site when it is live.
section#your-section-url {position: relative;width:100%;padding-top:56.25%;/* 16:9 Aspect Ratio */}
Question
LightPress 51
Had a hard time finding any answers on how to maintain a specific, responsive aspect ratio for Brine Family index sections with background videos. My client has a full width background video that needs to avoid cropping, and this was the best solution I could figure out.
Does anyone know how to calculate the padding for other aspect ratios, like 3:4?
I will post a link to the site when it is live.
Link to post
Top Posters For This Question
1
1
Popular Days
Nov 27
1
Dec 3
1
Top Posters For This Question
LightPress 1 post
iknowbryan 1 post
Popular Days
Nov 27 2019
1 post
Dec 3 2019
1 post
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment