Bharat Negi
Bharat Negi

Reputation: 507

Black border div shape

I have problem with this shape, we are all ready using css border class to make this shape, please if any one can make this black box shape with in the Jquery. it will be very help. meenter image description here

Upvotes: 0

Views: 122

Answers (1)

Nenad Vracar
Nenad Vracar

Reputation: 122087

You can use borders to create that shape and then just use transform: rotate

.shape {
  width: 80px;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 80px solid black;
  transform: rotate(90deg);
  margin: 50px;
}
<div class="shape"></div>

Upvotes: 1

Related Questions