Ответы пользователя по тегу Вёрстка
  • Как обрезать последний элемент?

    .carousel {
      width: 100%;
      overflow: hidden;
    }
    .carousel .layer {
      width: 1000px;
    }
    .carousel .layer a {
      display: block;
      float: left;
    }


    <div class="carousel" >
      <div class="layer">
                <a href="#">
                    <img src="./image/carousel-1.png" alt="">
                    <h1>Choosing your office furniture in 2021</h1>
                    <span>There's more to office space design than just choosing the layout, colors, and decor of your space. You also need to choose the right office furniture</span>
                </a>
                <a href="#">
                    <img src="./image/carousel-2.png" alt="">
                    <h1>How to Choose Furniture For Your Office</h1>
                    <span>There's a lot of thought that goes into choosing the furniture for your office. The last thing you want to do is choose furniture that's uncomfortable...</span>
                </a>
                <a href="#">
                    <img src="./image/carousel-3.png" alt="">
                    <h1>Choosing The Right Office Chair</h1>
                    <span>You're going to be a long period of time behind your desk, so it's important to choose the right office desk chair for your commercial...</span>
                </a>
                <a href="#">
                    <img src="./image/carousel-4.png" alt="">
                    <h1>Choosing The Right Office Chair</h1>
                    <span>You're going to be a long period of time behind your desk, so it's important to choose the right office desk chair for your commercial...</span>
                </a>
       </div>
     </div>
    Ответ написан