<div class="container">
<div class="box1"></div>
<div class="box2"></div>
<div class="box3"></div>
</div>
.box1 {
width: 200px;
height: 200px;
background-image: linear-gradient(red, blue);
margin-bottom: 5px;
}
.box2 {
width: 200px;
height: 200px;
background-image: linear-gradient(to left, red 70%, blue);
}
.box3 {
width: 200px;
height: 200px;
background-image: linear-gradient(135deg, red, blue, purple);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.