Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1256284

    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

    #1256703

    Hello. Nobody can help me?

    #1256887

    Hi kohlidays_kohsamui,

    Best regards,
    Victoria

    #1256967

    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?

    #1258119

    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

    #1258164

    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

    #1258192

    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

    #1258200

    Thanks a lot Yigit. ;)

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Radius border on background image in a color section’ is closed to new replies.