Hi,
I have a page with an accordion bric with a video as a card. How can I remove the ‘padding’ around the video?
https://valleywebdevelopment.info/clients/fcf2
Thanks in advance
Ray
Hi,
I have a page with an accordion bric with a video as a card. How can I remove the ‘padding’ around the video?
https://valleywebdevelopment.info/clients/fcf2
Thanks in advance
Ray
The “padding” is white space in the video element due to the aspect ratio that is being applied with the CSS.
You seem to also have two ratio classes on the one video element.
Hi Pete,
Thanks for your reply. I can’t see where the ratio has both elements in the project.
Is there another way of showing portrait videos to ‘fill’ the space with a small border perhaps, again within an accordion?
Ray
The ratios built into the Bootstrap framework do not include one for vertical video.
But you can make your own easily enough. I have posted before how to make them.
The trick is setting a padding-top that has the height / width * 100
Thanks Pete,
I’ll give that a go this weekend.
Ray
Sorry to go off topic here !
@raybb3uk Ray - we have a holiday home on the beach front in Brean in Somerset in the UK and just by looking at the Sand and sea that looks like Brean beach in that link your posted!!! - yes I know there are probably hundreds of thousands of beaches In the world that look the same !!! But soon as I saw the sand and sea, reminded of it !
Hi,
Not sure where it’s located. If it’s the background image, it’s from UnSplash. The video was provided by the customer, so unsure where that might be ![]()
Ray