Answer the question
In order to leave comments, you need to log in
Positioning blocks with a polygon?
Hello, due to lack of knowledge I can not solve this problem, so I ask for your help here. How would you implement this, given that the entire block should be responsive?
Answer the question
In order to leave comments, you need to log in
Well, anyway, in small resolutions, everything will stand one under the other in a column, and since in the picture the parent is relative and the polyhedrons are absolute and then media queries and move them, any browser has an adaptive design, i.e. checking how it will look on mobile phones, well and use the editor in the browser itself
diamonds themselves can be done like this:
div {
margin: 27px 0;
width: 100px;
height: 55px;
background: #F1CCAE;
position: relative;
}
div:before, div:after {
content: "";
width: 0;
height: 0;
position: absolute;
left: 0;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
}
div:before {
top: -25px;
border-bottom: 25px solid #F1CCAE;
}
div:after {
bottom: -25px;
border-top: 25px solid #F1CCAE;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question