S
S
smcopandakun2016-04-21 01:11:42
css
smcopandakun, 2016-04-21 01:11:42

Positioning blocks with a polygon?

673ac55a3a7a40f28ebc9d595fd46b18.PNG
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

3 answer(s)
C
Cyril, 2016-04-21
@belyaevcyrill

Make it as SVG icons. They can be scaled without loss of quality.

A
A person from Kazakhstan, 2016-04-21
@LenovoId

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

E
Elena, 2016-04-21
@olenne

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;
}

For mobile, you can remove the explanatory text for the icon and show it when hovering over the icon.
And place in three columns: in the left three hexagons under each other, in the middle - the top - the central hexagon of a reduced size - the bottom, in the right - the remaining three hexagons. In this case, you can not use positioning, but mark the page into 3 blocks of 33.3333333333%, inside which identical polygons will be placed. And of course, first make the layout for mobile devices.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question