Sorry Mike,
I have tried this code so that the background of the video is not visible when I apply a border radius to the video, but something happens and it does not work
.mejs-container * {
border-radius: 20px !important;
}
div.mejs-controls {display:none;}
.avia-video .mejs-container {
background-color: none !important;
}
And it doesnt work in kobile
Ok. With this code, it works… But only in desktop, it doesnt work in mobile. How can I make it work on mobile?
.avia-video, .mejs-container * {
border-radius: 20px !important;
background-color: none !important;
}
div.mejs-controls {display:none;}
.avia-video .mejs-container {
background-color: transparent !important;
}
Hi,
Thank you for the inquiry.
You may need to set the overflow property of the video element to hidden. Please try this css code.
.avia-video {
border-radius: 10px;
overflow: hidden;
}
Best regards,
Ismael
Thanks for your help.
I have done,
However, although it looks good on the desktop version, the border-radius is not visible on the mobile version, nor are the video controls hidden.
This is css code that I have. It looks fine on desktop but not on mobile.
/*video*/
.avia-video, .mejs-container * {
border-radius: 20px !important;
background-color: none !important;
overflow: hidden !important;
}
div.mejs-controls {display:none;}
.avia-video .mejs-container {
background-color: transparent !important;
}
Hi,
Thank you for the update.
The css is not present on smaller screens when we check the site again. Please check your css media queries, make sure that all of them are closed properly. The css is only applied when @media (min-width: 1200px) is true.
Best regards,
Ismael
Thanks. That was the problem. Thank you very much.
Hi ramiropuig,
I’m glad that Ismael could help you :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko