L
L
Lordian2018-01-31 15:07:18
css
Lordian, 2018-01-31 15:07:18

How to fix such a border?

Hello, there is a similar code.
https://codepen.io/anon/pen/jZPyMz
It is necessary that the green picture be cut off along the border (gray block) and be, as it were, under it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Ankhena, 2018-01-31
@Lordian

https://jsfiddle.net/f24ozu0z/

.second {
  position: relative;
  height: 300px;
  margin-top: -150px;
  background: radial-gradient(100% 50% at center top, transparent 49.8%, gray 50.2%);
  z-index: 2;
}

You can still play with the gradient, align

A
aloky, 2018-01-31
@aloky

:after {
   z-index: 1;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question