How to build a special polygon a kite shape with HTML CSS only

0 votes

I'm working on my new project and in this I need some irregular structures. One of them is: Kite shape

What I achieved is:

.mainkite {
  width: 200px;
  height: 200px;
  background: #f00;
  transform: skew(180deg, 180deg) rotate(45deg);
  position: relative;
  margin: 0px auto;
  margin-top: 50px;
  overflow: hidden;
}
.midLine {
  border: solid 1px #000;
  transform: skew(180deg, 180deg) rotate(45deg);
  position: absolute;
  top: 99px;
  width: 140%;
  left: -41px;
}
<div class="mainkite">
  <div class="midLine"></div>
</div>

How can I get the rest of the shape I desire?

May 27 in CSS by Edureka
• 7,940 points
25 views

1 answer to this question.

0 votes

I made two divs, one for Arc and one for Tail. Because mainkite overflow is set to hidden, I wrapped mainkite and tale in a single div to appropriately position the tail.

answered May 28 by Edureka
• 8,820 points

Related Questions In CSS

0 votes
0 answers

Rails - how to integrate a form with bootstraps css?

I'd want to use Bootstrap to update ...READ MORE

Jun 9 in CSS by Edureka
• 7,940 points
4 views
0 votes
1 answer
0 votes
0 answers
0 votes
0 answers

How to convert a web page(html,css,js) into android app?

I want to make an app for ...READ MORE

Jun 21 in CSS by Edureka
• 7,940 points
9 views
0 votes
1 answer

html/css hexagon with image inside

The CSS3 clip-path feature is a novel ...READ MORE

answered Jun 10 in CSS by Edureka
• 8,820 points
30 views
0 votes
1 answer

Double arc shape with CSS jquery or javascript

But for this shape I would use ...READ MORE

answered Jun 14 in JQuery by gaurav
• 13,460 points
9 views
0 votes
2 answers

Define a SQL query? What is the difference between SELECT and UPDATE Query? How do you use SQL in SAS?

HI.. SQL is Structured Query Language, which is ...READ MORE

answered Aug 8, 2020 in PHP by anonymous
4,476 views
0 votes
1 answer

Using/Handling colon inside a JSF generated HTML element ID in CSS selector

Yes, you can.  Just Backslash (\) the colon.  Like ...READ MORE

answered Nov 14, 2018 in Others by DataKing99
• 8,240 points
1,652 views
0 votes
1 answer

Is there any way to colorize a white PNG image with CSS only?

Filters can be used with -webkit-filter and ...READ MORE

answered May 27 in CSS by Edureka
• 8,820 points
26 views
0 votes
1 answer

How to hide image broken Icon using only CSS/HTML?

Because CSS/HTML has no means of knowing ...READ MORE

answered May 31 in CSS by Edureka
• 8,820 points
14 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP