0

how to make a div border below corner like in this below image in css.

enter image description here

Ahsan Ullah
  • 158
  • 4
  • 15

1 Answers1

1

You can hack using multiple elements like this:

.d1 {
  width: 100px;
  height: 100px;
  background-color: #00f;
}

.wrapper {
  width: 100px;
  height: 20px;
  background-color: #fff;
  margin-top: -20px;
}

.d2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #00f;
}

.wrapper2 {
  width: 100px;
  height: 10px;
  background-color: #00f;
  margin-top: -20px;
  position: absolute;
}
<div class="d1"></div>
<div class="wrapper">
  <div class="d2"></div>
</div>
<div class="wrapper2"></div>
Tân
  • 1
  • 15
  • 56
  • 102