E
E
Egor Ogurtsov2016-05-13 14:45:39
css
Egor Ogurtsov, 2016-05-13 14:45:39

How to correctly insert a block to the full width of the screen in container?

There is a page with a couple of text blocks displayed inside a .container (bootstrap3).
The task is to insert a picture between them for the entire width of the screen without changing the layout structure.
The first and obvious one is position: absolute; width: 100% float: left; and calculate height with js for padding.
Maybe there are other solutions?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Руслан Шадура, 2016-05-13
@Houdy

Всмысле "между ними"? на заднем фоне?

Максим Тимофеев, 2016-05-13
@webinar

С помощью псевдоклассов css, например
не забываем родителя сделать релятивным

Сергей Тутуков, 2016-05-13
@sftutukov

codepen.io/STutukov/pen/MyRJwm
Либо с помощью js закрывать .container
вставлять блок с картинкой

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question