3
You can use a linear-gradient()
to achieve the desired effect.
The function
linear-gradient()
CSS creates a consistent image progressive between two or more colors along a straight line.
section {
width: 100%;
height: 10rem;
background-image: linear-gradient(to bottom, blue 0, blue 70%, yellow 30%);
}
<section></section>
References:
should follow the code you’ve tried to do too.
– user60252
i try to do using Divs, but the result does not come out like this in the image above
– André Felipe Jardim Firmo