Skip to content
Justice Tech School

Multiple Backgrounds

Stack several backgrounds separated by commas. The first one is on top. Mix gradients and images for layered effects.

Example
<style>
.m { height: 70px; background: radial-gradient(circle at 20% 30%, #f59e0b 0 20px, transparent 21px), linear-gradient(#0f766e, #1e293b) }
</style>
<div class="m"></div>

Exercise

Layer separator.

background: a b

Quiz Test

Which background is on top?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.