M
M
Max Zhukov2018-02-28 16:45:35
css
Max Zhukov, 2018-02-28 16:45:35

How to crop so the border property?

5a96b269ecd8a837567536.png
car painting png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Denis Shevchenko, 2018-02-28
@MaksZhukov

<style>
    .banner-top, .banner-bottom{
        border: 2px solid red;
        border-radius: 30px;
    }
    .banner-top{
        border-bottom: none;
    }
    .banner-bottom{
        border-top: none;
    }

    .banner-center{
        margin: 0 -30px;
    }
</style>

<div class="banner">
    <div class="banner-top">
        CONTENT TOP
    </div>
    <div class="banner-center">
        <img src="..." alt="">
    </div>
    <div class="banner-bottom">
        CONTENT BOTTOM
    </div>
</div>

A
Anton, 2018-02-28
@Eridani

Overlay image over block

D
David Halkin, 2018-02-28
@northfire

IMHO - no way. as an option, divide the entire parent block into 3 parts: 1. top (text), middle (picture) and bottom. on the lower and upper parts - give borders

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question