Unlock This Lesson & Start Learning!
Get full access to this lesson, practical exercises, quizzes, and your Mentora AI Tutor.
Special Offer, use coupon code DWL6BC to get additional discount of 10% on all subscription. Hurry limited time offer.
20% off
1 Month
₹323
₹259
Unlock Now
Renews at ₹259/month.
Manual renewal required. No automatic charges.
✓
Premium lessons access
✓
Quizzes and exercises
✓
Mentora AI Tutor
32% off
3 Months
₹971
₹659
Unlock Now
Equivalent to ₹219.67/month.
Manual renewal required. No automatic charges.
✓
Premium lessons access
✓
Quizzes and exercises
✓
Mentora AI Tutor
40% off
6 Months
₹1942
₹1159
Unlock Now
Equivalent to ₹193.17/month.
Manual renewal required. No automatic charges.
✓
Premium lessons access
✓
Quizzes and exercises
✓
Mentora AI Tutor
44% off
12 Months
₹3884
₹2159
Unlock Now
Equivalent to ₹179.92/month.
Manual renewal required. No automatic charges.
✓
Premium lessons access
✓
Quizzes and exercises
✓
Mentora AI Tutor
We care about your privacy
Dremendo uses cookies and similar technologies that are necessary for the site to work properly, understand how you
interact with our website, and measure the effectiveness of our marketing. By clicking Accept All, you consent to the
use of non-essential cookies and similar technologies for analytics, advertising, and ad measurement, as described
in our Privacy Policy .
Accept All
Reject All
Customize
Cookie Preferences
Choose which types of cookies Dremendo may use.
Save Preferences
Cancel
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Linear Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: linear-gradient(to top, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Linear Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: linear-gradient(to bottom, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Linear Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: linear-gradient(to left, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Linear Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: linear-gradient(to right, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Linear Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: linear-gradient(to top left, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Linear Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: linear-gradient(to top right, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Linear Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: linear-gradient(to bottom left, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Linear Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: linear-gradient(to bottom right, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Linear Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: linear-gradient(20deg, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Linear Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: linear-gradient(to bottom left, yellow, red, orange, blue, cyan, green);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Repeating Linear Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: repeating-linear-gradient(to right, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Radial Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: radial-gradient(circle, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Radial Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: radial-gradient(ellipse, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Radial Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: radial-gradient(circle closest-side, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Radial Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: radial-gradient(circle closest-corner, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Radial Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: radial-gradient(circle farthest-side, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Radial Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: radial-gradient(circle farthest-corner, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Radial Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: radial-gradient(circle farthest-side at 80% 30%, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Radial Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: radial-gradient(circle farthest-side at 50px 80px, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Radial Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: radial-gradient(circle farthest-side at top left, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Radial Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: radial-gradient(circle farthest-side at top right, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Radial Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: radial-gradient(circle farthest-side at bottom left, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Radial Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: radial-gradient(circle farthest-side at bottom right, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Radial Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: radial-gradient(circle farthest-side at top, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Radial Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: radial-gradient(circle farthest-side at bottom center, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Radial Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: radial-gradient(circle farthest-side at left, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Radial Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: radial-gradient(circle farthest-side at right, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Radial Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: radial-gradient(circle farthest-side at center, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Radial Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: radial-gradient(circle, yellow, red, orange, blue, cyan, green);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html> <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Repeating Radial Gradient Example</title>
<!-- Internal CSS -->
<style>
.gradient-box {
width: 250px;
height: 180px;
background: repeating-radial-gradient(circle farthest-side at center, yellow 40%, red 60%);
}
</style>
</head>
<body>
<div class="gradient-box"></div>
</body>
</html>
Hi, I’m Mentora!
I’m your personal AI tutor from Dremendo. Ask me anything, and I’ll help you understand it in a simple and easy way.