P
P
Polina Emelyanova2018-04-22 13:13:38
css
Polina Emelyanova, 2018-04-22 13:13:38

How to lay out two adjacent beveled blocks if they have backgrounds?

Good afternoon, colleagues.
I have a question for which there are a thousand "toasts", but I can not find the right one.
SUBJECT:
There is a website design where all sections have a beveled top/bottom. In addition, each section has either a gradient or a photo background.
5adc5f9b97c44391343973.jpeg
QUESTION:
How, in your mind, to make up this?
clip-path - yes, but it has a nasty property akin to overflow: hidden;
transform + pseudo - how exactly? I can’t think of who to assign the substrate to, so that it doesn’t crawl out of the bevel and warp itself, and also stretch out over the entire visible (!) Area.
Has anyone dealt with such a request? Thank you in advance for your response.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim Timofeev, 2018-04-25
@webinar

I think it's better to play with svg
pattern-blog.com.ua/article/skoshennyie-elementyi-...
bennettfeely.com/clippy

S
Sergey, 2018-04-22
@gangstarcj

How to lay out a beveled block?
Cut/beveled corners on a DIV layer with custom background inside and below it in pure CSS. Is it real?
https://www.google.ru/search?q=%D0%9A%D0%B0%D0%BA+...

F
forspamonly2, 2018-04-22
@forspamonly2

and there seems to be no pure gradients. even on the blue part there are pieces of photographs. if you make these pieces in PNG and put on top of the gradient, then it may well turn out that it weighs more than if you press the gradient background all the way in one jeep. it turns out that there is simply no point in separating any two beveled blocks, since they are both pictures.
therefore, a completely acceptable option is to leave everything as a few solid bitmaps along the boundaries of horizontal blocks. besides, it will be fair: swindlers must suffer.
but if we talk specifically about the technical feasibility, then you can try to make svg-shny backgrounds with one beveled side nailed to the edge of each section.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question