Round Edges Images / Video
-
Dear @FloMo
This is not possible with standard options (unless the actual image and video files have round edges) but if you would like to use CSS to achieve this look into:
Border Radius
With Video, you will need to apply the Border radius to the video's container for example:
https://stackoverflow.com/questions/6238451/rounded-corners-on-html5-video/24014427
Best wishes @FloMo & have a great day 🏖
Richard
-
This post is deleted!
-
just apply this css to any css selectors:
border-radius: 20px;
overflow: hidden;like:
.ph{ border-radius: 20px; overflow: hidden; }
-
into lay options → custom css & html
-
Hello,
this code was helping me a lot to give video sequences round edges on my whole website. Thanks for that!
However, I now have problems with the rounded edges on photos. But only at the bottom as soon as I add a caption. See the screenshots.
I am using this code for the videos:
.ph{
border-radius: 6px;
overflow: hidden;
}And this code for the images:
.img{
border-radius: 6px;
overflow: hidden;
}Does anyone have any idea how I could fix this?
Everyone have a nice weekend!
-
try this
.type-img img{ border-radius: 10px; } .type-img .ph{ background-color: transparent!important; }
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it