Answer the question
In order to leave comments, you need to log in
Why does the image overlap with another section?
There is a section, when you try to add a background image there, the image starts to overlap with another section.
<div class="black-background">
<div class="container">
<div class="row">
<div class=" col-lg-2">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
</div>
</div>
</div>
</div>
.black-background {
height: 200px;
.bg-img('black-background.jpg') ;/// это миксин
}
.bg-img(@img, @pos:center center, @att:scroll) {
background-image: url('@{img-folder}@{img}');
background-position: @pos;
background-repeat: no-repeat;
background-size: cover;
background-attachment: @att;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question