![]() |
The Syntax:/* Example of using the background property */
|
CSS Property | Description |
---|---|
background-color | Sets the background color using color names, hex codes, RGB values, etc. |
background-image | Specifies the background image using a URL or gradients. |
background-repeat | Defines how the background image should be repeated. |
background-attachment | Sets whether the background image is fixed or scrolls with the content. |
background-position | Determines the starting position of the background image. |
background
property combines multiple background-related properties into a single line, improving code readability.background
property to create gradient backgrounds as well.Reffered: https://www.geeksforgeeks.org
CSS |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 12 |