#csstutorial #webdevelopmentcourse #css3
CSS Background Properties Tutorial in Hindi/Urdu | Learn All Background Properties
Welcome to our YouTube channel! In this video, we will teach you all about CSS background properties.
Want to learn how to make your webpage backgrounds stunning? In this tutorial, we will cover:
- background-color
- background-image
- background-repeat
- background-attachment
- background-position
- background-size
- background-origin
- background-clip
This video is specially created for Hindi/Urdu speaking viewers so you can easily understand and master CSS background properties. Don't forget to like, share, and subscribe for more tutorials!
Certainly! Here's a more detailed explanation of each CSS background property covered in the video:
1. **background-color**: This property sets the background color of an element. You can use color names, HEX values, RGB, or HSL values to define the color.
2. **background-image**: This property allows you to set an image as the background of an element. You can use a URL to specify the image.
3. **background-repeat**: This property defines how the background image repeats. Options include:
- `repeat`: The background image will repeat both vertically and horizontally.
- `repeat-x`: The background image will repeat only horizontally.
- `repeat-y`: The background image will repeat only vertically.
- `no-repeat`: The background image will not repeat.
4. **background-attachment**: This property sets whether the background image scrolls with the rest of the page or is fixed in place. Options include:
- `scroll`: The background image scrolls with the page.
- `fixed`: The background image stays in place when the page is scrolled.
- `local`: The background image scrolls with the element's contents.
5. **background-position**: This property specifies the initial position of the background image. You can use keywords (like top, right, bottom, left, center) or specific values (like percentages or pixels).
6. **background-size**: This property defines the size of the background image. Options include:
- `auto`: The background image retains its original size.
- `cover`: The background image scales to cover the entire element, maintaining its aspect ratio.
- `contain`: The background image scales to fit within the element, maintaining its aspect ratio.
- Specific values: You can also specify exact width and height using units like pixels, percentages, etc.
7. **background-origin**: This property sets the positioning area of the background image. Options include:
- `padding-box`: The background image starts from the padding edge.
- `border-box`: The background image starts from the border edge.
- `content-box`: The background image starts from the content edge.
8. **background-clip**: This property defines how far the background image extends within an element. Options include:
- `border-box`: The background extends to the outside edge of the border.
- `padding-box`: The background extends to the outside edge of the padding.
- `content-box`: The background extends to the edge of the content.
By understanding and using these properties, you can create visually appealing and well-designed web pages. The video explains each property in detail with examples, making it easier for you to implement them in your projects.
![](https://i.ytimg.com/vi/omAXevzVyzA/maxresdefault.jpg)