Hello Rikard, hello Ismael
I have a color section with 2 columns. I would like to add a 10px radius border to the 1200 x 800 background image.
https://www.yourwebsite.rentals/pricing/
I tried several solutions, but nothing works.
For the moment I have given a class to the color section:
.image-backgroud-radius {
-webkit-border-radius: 10px !important;
-moz-border-radius: 10px !important;
border-radius: 10px !important;
border: none !important;
background-image: url(https://www.yourwebsite.rentals/wp-content/uploads/2020/10/235.jpg);
background-repeat: no-repeat;
width: 1200px;
height: 800px;
}
But the whole block remains frozen on the left with a white background while I would like the background color #fafafafa
Despite my css alignment tests nothing works.
What can be the solution ?
Thanks in advance
Bertrand
Hello. Nobody can help me?
Hi kohlidays_kohsamui,
Best regards,
Victoria
All right, thank you. But I don’t have the solution to put a background image of a color section with a border radius of 10. Can you help me?
Hi Bertrand,
Sorry for the late reply!
I am afraid border-radius property will not work on background images. Could you round the corners of the image and upload as PNG instead?
Best regards,
Yigit
Hello Yigit. Thank you for your answer. If there are no other CSS solutions, indeed I will do that. Thank you and have a nice day.
Bertrand
Hi Bertrand,
I am afraid there is not.
Your website looks great by the way!
Thanks and you too have a nice day :)
Best regards,
Yigit
Thanks a lot Yigit. ;)