M
M
massef2017-03-10 13:37:16
css
massef, 2017-03-10 13:37:16

A section with two columns in a container and a double background?

Codepen I
often come across such sections. I usually typeset as in the example. But the solution with negative position hurts the eye.
If the layout is rubber, then there are no questions, two pseudo-elements of 50% for the wrapper and you're done.
When you need adaptability, you have to pervert like this, because you need to stretch the background according to the height of the column on the mob. devices.
Are there more elegant techniques or maybe on flexbox?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
iBird Rose, 2017-03-10
@iiiBird

also thought about it. IMHO you have the most normal implementation in the example.

Z
Zam_Bo, 2017-03-10
@Zam_Bo

Like this?
codepen.io/Zamchenco/pen/zZZpQQ?editors=1100

A
Andrey B., 2017-03-10
@andykov

I do the same, I don't see any other normal way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question