Display Size Of Video And Image is Different - Question | JoomShaper

Display Size Of Video And Image is Different

J

Jürgen J. Fischer

SP Page Builder 8 months ago

Hi, I have a page with 4 columns every column has on top a video or an image then text and button On Desktop all 4 columns from left to right should have same size/position

Video size = 900x600 Pixel Image size = 900x600 Pixel

video will be displayed smaller than image

I think this css is wrong:

.sppb-addon-video-local-source { object-fit: contain; position: absolute; left: 0; top: 0; height: 100%; width: 100%; }

If I disable positon: absolute, the size will be displayed correct, but not the position

Can you please help me?

0
7 Answers
Pavel
Pavel
Accepted Answer
8 months ago #184207

Hi

The object-fit property may not work correctly in Chrome and Safari without using position: absolute;. Therefore, you should not disable this.

I believe your issue can be resolved through CSS. I could help you if you provide a public link to the page containing the problem.

I doubt that Joomshaper's support team will assist you, as CSS customization falls outside the scope of their support. However, you can try waiting for their response.

0
J
Jürgen J. Fischer
Accepted Answer
8 months ago #184211

Hi Pavel

You can see it here: by-immo.de / portfolio / schmack immobilien gruppe

Password see hidden content please

0
Pavel
Pavel
Accepted Answer
8 months ago #184212

I assumed it was clear from my post that I am not a support team member. I cannot see hidden content and can only assist you if you make the site public and provide a publicly accessible link.

0
J
Jürgen J. Fischer
Accepted Answer
8 months ago #184216

Hi Pavel, sorry, my mistake

Now the site is online without Password.

You can see it here: by-immo.de / portfolio / schmack immobilien gruppe

0
Pavel
Pavel
Accepted Answer
8 months ago #184225

Add class to video addon

Use CSS

.your-class .sppb-addon-video-local-video-wrap {
    aspect-ratio: 9/6;
}

Result

0
J
Jürgen J. Fischer
Accepted Answer
8 months ago #184259

This works fine. Thank You Pavel.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 8 months ago #184265

Hello Jürgen J. Fischer ,

Thank you for reaching out to our technical support forum. I’m sorry to hear about the trouble you’re experiencing. Hopefully, your issue is solved by now. Thanks to Pavel.

Best regards

0