- Background Image (Web Development Course Class 28 )
Definition:
Thebackground-image
property sets an image as the background of an HTML element.
Example:

body {
background-image: url("background.jpg");
}
- Background Repeat (Web Development Course Class 28 )
Definition:
Thebackground-repeat
property defines if/how the background image should be repeated (tiled).
Example:
body {
background-image: url("bg.jpg");
background-repeat: no-repeat;
}
Values:
repeat
– repeats both horizontally and vertically (default)no-repeat
– image appears only oncerepeat-x
– repeats only horizontallyrepeat-y
– repeats only vertically
- Background Color (RGB & RGBA) (Web Development Course Class 28 )
Definition:
Thebackground-color
property sets the background color of an element.rgb()
stands for red, green, blue.rgba()
adds an alpha value for transparency.
Example (RGB):
div {
background-color: rgb(255, 0, 0); /* red */
}
Example (RGBA):
div {
background-color: rgba(255, 0, 0, 0.5); /* red with 50% transparency */
}
- Box Shadow (Web Development Course Class 28 )
Definition: Thebox-shadow
property adds a shadow around a box (div, button, etc.).
Example:div { box-shadow: 5px 5px 10px gray; }
Explanation:
X offset (5px), Y offset (5px), Blur (10px), Color (gray)
Text Shadow
Definition:
Thetext-shadow
property adds shadow to text to make it stand out.
Example:h1 { text-shadow: 2px 2px 5px black; }
Overflow (Web Development Course Class 28 )
Definition:
Theoverflow
property controls what happens when content is too big for its container.
Example:div { width: 200px; height: 100px; overflow: scroll; }
Values:visible
– default; content is not clippedhidden
– content is clipped and not visiblescroll
– content is clipped and scrollbars are addedauto
– scrollbars appear only when needed