Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Set the parent element containing the text block and the "picture" block to display: table-row. Child blocks - property display: table-cell.
When doing this, do not forget to specify the width of the child blocks (in the amount of 100% of the parent).
And now background-size: cover
Give the block with the image the height of the parent and everything will be fine. The code will be something like this:
<div class="row">
<div class="col-xs-6 image">image</div>
<div class="col-xs-6 content">content</div>
</div>
.image {
height: inherit;
background: url('url');
background-size: cover;
}
.content {
...
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question