Задать вопрос
@jjsso

Не могу понять как прижать изображения к правому краю?

Не могу понять почему изображения не прижимаются к правому краю как на макете?
задаю cпейс битвин, все равно на одном и том же месте стоит
6899244fc7df5495240465.png
6899245b844d1125847425.png
<section class="latest-trends">
    <div class="container">
        <div class="email-form">
         <div class="email-input">
         <input type="text" placeholder="email@address.com">
         </div>
         <a href="">
            Subscribe
         </a>
       </div>

       <div class="latest__titles">
        <h1>Be aware of the latest trends</h1>
        <p>Stay informed of new trends, but also of our various offers.</p>
        <a href="">Learn more</a>
       </div>
       
    </div>
        <div class="latest-inner">
        <div class="latest__cards container">
        <img src="/images/Picture.png" alt="">
        <img src="/images/Picture (1).png" alt="">
        <img src="/images/Picture (2).png" alt="">
       </div>
       </div>
       <div class="inspirators container">
        <div class="ispirators">
            <h1>Inspirations</h1>
            <p>Our experts are keen to stay on top of trends in order to offer you new inspirations for your interior and exterior every day. Remember that to inspire you we have to inspire ourselves and we want to share that with you.</p>
        </div>
      
          <div class="slides">
          <a href="">
          <img src="/images/Button.png" alt="">
          </a>
          <a href="">
          <img src="/images/Button (1).png" alt="">
          </a>
           <p>01 / 05</p>
          </div>
       </div>

  </section>

.latest__cards {
    margin-left: 190px;
    display: flex;
    justify-content: space-between;
    margin-top: 64px;
    

}
  • Вопрос задан
  • 183 просмотра
Подписаться 1 Простой 4 комментария
Помогут разобраться в теме Все курсы
  • Нетология
    Фронтенд-разработчик
    11 месяцев
    Далее
  • Яндекс Практикум
    Профессиональная вёрстка на HTML и CSS
    3 месяца
    Далее
  • Skillbox
    Веб-вёрстка
    3 месяца
    Далее
Пригласить эксперта
Ответы на вопрос 1
TonyMind
@TonyMind
Если карусель пишете сами, то вот вам .css
Регулируйте свойством flex: 0 0 40%
Где flex: flex-grow flex-shrink flex-basis

body {
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
}

.latest__cards {
  display: flex;
  gap: 30px;
}

.latest__cards img {
  flex: 0 0 40%;
  max-height: 400px;
  object-fit: cover;
}


А если не сами, то возьмите сразу готовый слайдер т.к. swiper или splide
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы