V
V
Vitaly Kuznetsov2019-02-26 11:52:54
css
Vitaly Kuznetsov, 2019-02-26 11:52:54

How to make an uneven adaptive frame with rounded edges?

How to do this in css and svg? and also adaptive :-)
5c74fd577649a596801757.png
I tried to use mask and bg-size: cover - but everything floats one way or another.
Can I use some js to scale the svg?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
A person from Kazakhstan, 2019-02-26
@vitaly44

https://codepen.io/topicstarter/pen/drPpdv - if you need to adapt, remove the fixed size from .items and adjust how your input fields should look like

A
Andrew, 2019-02-26
@ellenripley4

Have you tried the CSS clip-path property?
Link to a convenient online generator

M
Maxim Timofeev, 2019-02-26
@webinar

.myFormWrapper {
   background: url('myback.svg') no-repeat 50% 50%;
   background-size: cover;
   padding-bottom: 30%;
}

in the svg file itself, the usual path with a fill.
fse

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question