A
A
AlexanderShustik2016-04-21 21:16:11
css
AlexanderShustik, 2016-04-21 21:16:11

How to implement slash divs?

Hello, on the layout, c04c220c0e474060b933438352be1edd.jpg
four blocks meet at one point, how to implement this in html + css, I tried background, but there each screen size must have its own positions so that the intersection point matches

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Bogachev, 2016-04-21
@AlexanderShustik

You can , for example, like this , here the question of one point should not be raised - but for small screens (like a phone) it would be better not to divide into such parts at all - everything will be very small.

S
Serj-One, 2016-04-21
@Serj-One

Either triangles as a pseudo-element or transform skew with a reverse transform for the content.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question