<div class="card">
<h1>Ellipse Gradient</h1>
</div>
<div class="card">
<h1>Circle Gradient</h1>
</div>
@import url('https://fonts.googleapis.com/css2?family=Libre+Bodoni&display=swap');
body {
display: grid;
grid-gap: 30px;
grid-template-columns: 330px 330px;
width: 100vw;
height: 100vh;
margin: 20px 0 0 20px;
padding: 0;
font: 18px/1.5 "Libre Bodoni", serif;
}
.card {
width: 330px;
height: 400px;
padding: 30px;
box-sizing: border-box;
border-radius: 10px;
color: #fff;
}
.card:nth-child(1) {
background: radial-gradient(ellipse, #f44336, #000732);
}
.card:nth-child(2) {
background: radial-gradient(circle, #f44336, #000732);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.