Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Border Radius not working on image #244

Closed
Luxamman opened this issue Jul 12, 2016 · 7 comments
Closed

Image Border Radius not working on image #244

Luxamman opened this issue Jul 12, 2016 · 7 comments
Labels
request/enhancement Indicates an Enhancement Request for an existing feature.

Comments

@Luxamman
Copy link

Seems that the border radius is only working on borders - but not on images.

@yehudah
Copy link

yehudah commented Jul 12, 2016

Can you screenshot or give more details about what you defined ?

@Luxamman
Copy link
Author

When you put a "Image Widget" into an area, you can only style the element but not the image with a boarder and a boarder radius. so the images are sometimes smaller than the boarder and the corners are not "rounded" (boarder radius).
workaround is to set the picture as a section background and round the corners with the "boarder radius", but that way brings also problems with it.

prob

@yehudah
Copy link

yehudah commented Jul 13, 2016

You are correct,

The border options will be added in future versions.

@arielk arielk added the request/enhancement Indicates an Enhancement Request for an existing feature. label Aug 1, 2016
@arielk
Copy link
Member

arielk commented Sep 5, 2016

Done 7656028

@yt5ytt
Copy link

yt5ytt commented Jan 17, 2021

Yeah... I had same issue right now... Don't add image on it, but add background-image on empty widget and then go to border option and use border-radius on that widget.

@sussexslanter
Copy link

Same issue I think, in this case the image is larger than the border, and therefore the border effects are out of step with the image that is supposed to be highlighted on hover. Brown border, left image. Can't imagine this is difficult to resolve, what do I need to do?

Border Issue 2

@emre-edu-tech
Copy link

emre-edu-tech commented Feb 8, 2023

The easiest way to solve this problem (This is a problem because for Elementor every widget is in one or more div tags so you can set a class from the Advanced tab like img-container then you can put the CSS below in your child theme Style.css file.

.img-container img {
     border-radius: 10px;
}

Make the image as background is also a good solution but sometimes it really needs to be an image so the CSS above should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request/enhancement Indicates an Enhancement Request for an existing feature.
Projects
None yet
Development

No branches or pull requests

7 participants