Hello, @DavidBeuy
I understand you want to embed YouTube videos on your product page and have them match the size of your cover image (1000x1000 pixels) without the black borders. Here’s how you can achieve this using HTML and CSS:
HTML Code
First, ensure your YouTube video embed code is set to match the dimensions of your cover image:
CSS Code
Next, add some CSS to remove the black borders and ensure the video fills the entire container:
iframe {
width: 100%;
height: 100%;
border: none;
}
Full Example
Here’s how you can integrate this into your Wix Studio Editor:
Add the HTML Code: Insert the iframe code into your product page where you want the video to appear.
Add the CSS Code: Add the CSS code to your theme’s stylesheet or use the custom CSS section in Wix Studio Editor.
Additional Tips
Responsive Design: If you want the video to be responsive, you can use percentages instead of fixed pixel values for width and height.
Testing: Always test the changes on different devices and browsers to ensure the video displays correctly.
I hope this info is helpful to you.
Best Regard,
Jennifer Anderson