Answer the question
In order to leave comments, you need to log in
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
С помощью псевдоклассов css, например
не забываем родителя сделать релятивным
codepen.io/STutukov/pen/MyRJwm
Либо с помощью js закрывать .container
вставлять блок с картинкой
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question