How to get a div inside with css

Asked

Viewed 57 times

-1

How to make this arc in div with css ?

inserir a descrição da imagem aqui

I tried with border-Radius: 0px 0px 100% 0px; but it’s not cool

inserir a descrição da imagem aqui

  • Add html and css if it is not difficult to help you right friend!

1 answer

3

You can try to use only the border-Radius of the direction you want to create the Radius.

try this:

.div1 {
  background-color: red;
  width: 300px;
  height: 400px;
}

.div2 {
  background-color: green;
  width: 300px;
  height: 400px;
  border-top-left-radius: 400px 200px;
  border: 3px solid #000;
}
<div class="div1">
  <div class="div2">
  </div>
</div>

jsfiddle

  • Meaning border-top-left-Radius values: val1 val2?

  • border-top-left-Radius manipulates the Radius of top and left values sepradamente, while border-Radius works with values divided equally. Ex. If I want to touch only the upper left border, I will declare val1 (upper edge) val2 (left edge)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.