<div class="container">
<div class="element image">
Lineare
</div>
<div class="element linear">
Radiale
</div>
<div class="element radial">
Striscie
</div>
<div class="element multi">
Multiple
</div>
</div>
.container {
display: flex;
}
.element {
display: flex;
align-items: center;
justify-content: center;
font-family: sans-serif;
font-weight: 700;
height: 100px;
width: 100px;
margin-right: 1rem;
}
.image {
background-image: url(https://images.unsplash.com/photo-1536500152107-01ab1422f932?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80);
background-size: 200px;
background-position: 50%;
}
.linear {
background: linear-gradient(to top, #FFAE03, #ffe3a6);
}
.radial {
background: radial-gradient(60% 50%, #ffae03, #ffe3a6);
}
.striscie {
background: linear-gradient(#ffe3a6 50%, #ffae03 50%);
}
.multi {
background:
url(https://upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Unsplash_wordmark_logo.svg/1280px-Unsplash_wordmark_logo.svg.png) bottom center / 100px no-repeat,
url(https://images.unsplash.com/photo-1536500152107-01ab1422f932?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80) bottom center / 200px;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.