У меня был случай, который я не могу понять, как решить. У меня есть раздел Bootstrap 3, где видео находится в центре. Мне нужно добавить одно изображение слева от края видео, второе изображение справа от края видео. Так же, как я задумал на картинке.
Я пытался сделать это с position: absolute; и все было нормально, но при масштабировании экрана возникают проблемы. Как сделать так, чтобы изображения выглядели так, как будто они есть на изображении, но все ли в порядке с отзывчивостью?

<link href = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel = "stylesheet"/>
<script src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<html>
<section id = "trailer">
<div class = "container">
<div class = "row">
<div class = "col-sm-12">
<img src = "http://via.placeholder.com/170x400" alt = "" class = "trailer_wrapper--one img-responsive">
<div class = "embed-responsive embed-responsive-16by9">
<iframe class = "embed-responsive-item" src = "//www.youtube.com/embed/PGNiXGX2nLU"></iframe>
</div>
<img src = "http://via.placeholder.com/170x300" alt = "" class = "trailer_wrapper--two img-responsive">
</div>
</div>
</div>
</section>
</html>





Вы можете сделать это, разделив sm-12 на 2 + 8 + 2
.pl-0 {
padding-left: 0 !important;
}
.pr-0 {
padding-right: 0 !important;
}<link href = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel = "stylesheet"/>
<section id = "trailer">
<div class = "container">
<div class = "row">
<div class = "col-xs-2 pr-0"> <img src = "http://via.placeholder.com/170x400" alt = "" class = "trailer_wrapper--one img-responsive"> </div>
<div class = "col-xs-8 pl-0 pr-0">
<div class = "embed-responsive embed-responsive-16by9">
<iframe class = "embed-responsive-item" src = "//www.youtube.com/embed/PGNiXGX2nLU"></iframe>
</div>
</div>
<div class = "col-xs-2 pl-0"> <img src = "http://via.placeholder.com/170x300" alt = "" class = "trailer_wrapper--two img-responsive"> </div>
</div>
</div>
</section> Hi Since you are using bootstrap, please align your code with bootstrap grid system,
<link href = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel = "stylesheet"/>
<script src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<html>
<style>
img{
width:30px;height:30px;
}
.embed-responsive{
width:100%;
}
</style>
<section id = "trailer">
<div class = "container">
<div class = "row">
<div class = "col-sm-2 col-md-2 col-xs-2 col-lg-2">
<img src = "http://via.placeholder.com/170x400" alt = "" class = "trailer_wrapper--one img-responsive"/>
</div>
<div class = "col-sm-8 col-md-8 col-xs-8 col-lg-8">
<div class = "embed-responsive embed-responsive-16by9">
<iframe class = "embed-responsive-item" src = "//www.youtube.com/embed/PGNiXGX2nLU"></iframe>
</div>
</div>
<div class = "col-sm-2 col-md-2 col-xs-2 col-lg-2">
<img src = "http://via.placeholder.com/170x300" alt = "" class = "trailer_wrapper--two img-responsive">
</div>
</div>
</div>
</section>
</html>
You can style the height and width of image as per your need. This makes your website looks responsive and good looking.
Happy coding !! :)