-2
This can be done with a very simple shading effect:
.teste1 {
width: 100%;
height: 100px;
background-color: gray;
display: flex;
justify-content: center;
}
.teste2 {
width: 100px;
height: 100px;
background-color: gray;
box-shadow: 0 0 2px 0 rgba(0,0,0,0.12), 0 5px 5px 0 rgba(0,0,0,0.24);
}
<div class="teste1">
<div class="teste2">
</div>
</div>
Note that the two div s have the same color, the right is that in one I applied a slight shading, so the depth level is at your discretion
You can do via css, but these layout types the guys do with same cut image.
– David
Beautiful, but if I choose with css, the mode I quoted is correct to get this result?
– PSoledad
Welcome to Stackoverflow Tour: https://answall.com/tour or take a look at Help Center: https://answall.com/help and check how to ask questions in a way that is quickly answered, try to inform what you have already tried and post your code, it is difficult for anyone to do the job for you.
– Laércio Lopes