Jump to content

Border Bottom Curve Radius doesn't work when DIV has background image


Recommended Posts

.curved-bottom {
border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
}

I'm trying to use this code, to create a bottom curve to Page Builder rows (WP Bakery).

When I set the background of the row to be a colour, this works.

When I try it with a background image, it doesn't.  No curve at all.

Why might that be, and is there a simple fix?

I get same result, with and without background image, in both Firefox and Chrome

<head>
<style type='text/css'>
.test {
    width: 300px;
    height: 300px;
    margin: 50px;
    padding: 20px;
    background-color: black;
    background-image: url(caution_logo.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    border: 1px solid black;
    float: left;
}
.test2 {
    width: 300px;
    height: 300px;
    margin: 50px;
    padding: 20px;
    background-color: black;
    border: 1px solid black;
    float: left;
}
.curved-bottom {
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;

}
</style>

</head>
<body>
     <div class='test curved-bottom'>
         &nbsp;
     </div>
     <div class='test2 curved-bottom'>
         &nbsp;
     </div>
</body>

image.png.e2d03fadafd0b005170ac3f991c62ea3.png

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.