K
K
Kilila2018-03-03 19:18:46
css
Kilila, 2018-03-03 19:18:46

What is the best way to implement this kind of layout with pseudo-elements?

Good afternoon, connoisseurs :) Tell me, how best to implement blue lines in this layout?
5a9ac8892d1bc566608081.jpeg
(I sketched the main blocks with red lines to make it clear) So, I made three lines that pass through the icons as if through ::before for each of the three containers. Then I made two side vertical lines through ::before and ::after at the first element of the topmost of the three containers and the last element of the third container. At a certain screen width, the vertical lines break like this:
5a9aca1c0dc2f441354030.png
Is there any other way to make the layout more adaptive and versatile, or not bother and just work with breakpoints? It’s just that the gap is due to the expansion of content in height, due to narrowing, but I don’t understand how to make a universal solution here. Because in the initial form, the vertical lines have a height limit so that they do not intersect the horizontal lines, immediately when narrowing, a constant increase in height will occur ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-03-03
@abfrontend

Try giving them a height of 100% via top: 0; bottom: 0; and shift to the desired indent using translateY for example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question