@Please2334

Как избежать обрезания изображения выходящего из блока?

Обрезаются облака по бокам. Overflow:visible не помогает. Есть ли этому решение?64a2f805776d3274355891.png
HTML
<section class="intro">
            <div class="container">
                <div class="intro__content-box">
                    <div class="intro__content">

                        <h1 class="intro__title">
                            Track your next
                            fuel shops
                        </h1>
                        <h2 class="intro__subtitle">
                            Monitor and Alert on all petrol bunks near to you
                        </h2>
                        <p class="intro__text">Signup For <strong>FREE</strong></p>
                        <form class="form__intro" action="#">
                            <input class="input__intro" type="email" placeholder="Your E-mail  Adress">
                            <button class="intro__btn" type="submit">
                                SIGNUP
                            </button>
                        </form>
                    </div>
                </div>
            </div>
        </section>

        <section class="company">
            <div class="container">
                <div class="company__box">
                    <img class="company__img" src="images/company-1.png" alt="">
                    <img class="company__img" src="images/company-2.png" alt="">
                    <img class="company__img" src="images/company-3.png" alt="">
                    <img class="company__img" src="images/company-4.png" alt="">
                    <img class="company__img" src="images/company-5.png" alt="">
                </div>
            </div>
        </section>

CSS
.intro {
    overflow: visible;
    background-color: #66abdb;
}

.intro__content-box {
    height: 942px;
    display: flex;
    align-items: center;
    background-image: url(../images/bg.png);
    background-repeat: no-repeat;
    background-position: center;

    overflow: visible;
    /* background-repeat: no-repeat;
    background-position: center center;
    background-size: 100%; */

}

.intro__title {
    max-width: 490px;
    font-size: 52px;
    font-weight: bold;
    line-height: 72px;
    text-transform: uppercase;
    color: #f7f6f2;

}

.intro__subtitle {
    margin-top: 10px;
    font-size: 24px;
    font-weight: 300;
    font-style: italic;
    line-height: 47px;
    color: #fff;
}

.intro__text {
    margin-top: 40px;
    color: #f7f7f7;
}

.intro__text strong {
    background-color: #ffce54;
    padding: 5px 8px 3px;
    border-radius: 5px;
}

.form__intro {
    margin-top: 20px;
}

.input__intro {
    width: 427px;
    padding: 15px 0;
    padding-left: 30px;
    border: 1px solid #fff;
    border-radius: 5px;
}

.input__intro::placeholder {

    font-size: 18px;
    font-weight: 300;
    color: #d1d3d5;
}

.intro__btn {
    margin-left: 32px;
    padding: 15px 20px;
    text-transform: uppercase;
    background-color: #77c344;
    color: #fff;
    border: 1px solid #77c344;
    border-radius: 5px;
    cursor: pointer;
}
  • Вопрос задан
  • 85 просмотров
Пригласить эксперта
Ваш ответ на вопрос

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

Войти через центр авторизации
Похожие вопросы