Course Content
CSS Basic
0/1
CSS Selectors
0/1
CSS Comments
0/1
CSS Backgrounds
0/1
CSS Borders
0/1
CSS Outline
0/1
CSS Fonts
0/1
CSS Height and Width
0/1
CSS Margins and Paddings
0/2
CSS Icons
0/1
CSS Links
0/1
CSS Lists
0/1
CSS Tables
0/1
CSS Display Properties
0/1
CSS Max-Width Property
0/1
CSS Positioning Elements
0/1
CSS Z-Index Property
0/1
CSS Overflow
0/1
CSS Float
0/1
CSS Opacity
0/1
CSS Forms
0/1
CSS Dropdowns
0/1
CSS Buttons
0/1
CSS Media Queries
0/1
About Lesson

1. Radial Gradients:

Syntax:

background: radial-gradient(shape size at position, color-stop1, color-stop2, ...);
  • shape (optional): Defines the shape of the gradient. Can be circle or ellipse.
  • size (optional): Defines the size of the gradient. Can be keywords like closest-side, farthest-corner, etc.
  • position (optional): Defines the position of the gradient center. Defaults to center.
  • color-stop: Similar to linear gradients.

Example:

.radial-gradient: Applies a radial gradient background from #00c6ff to #0072ff.

CSS
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS Gradients Example</title>
    <style>
       
        .radial-gradient {
            background: radial-gradient(circle, #00c6ff, #0072ff);
            width: 200px;
            height: 200px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        }
    </style>
</head>
<body>
        <div class="radial-gradient"></div>
</body>
</html>