W
W
WQP2016-08-26 01:58:16
css
WQP, 2016-08-26 01:58:16

How to stretch an image beyond the parent's borders?

Hello, how to implement it correctly? https://yadi.sk/i/-a0oC04WuVcbV
The picture will be inside the column (bootstrap)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WQP, 2016-08-26
@WQP

The actual solution:

.img-wrap {
  width: 100%;
  background-color: #ccc;
  width: 100vw;
  position: relative;
  margin-left: -50vw;
  left: 50%;
  margin-bottom: 30px;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question