CSS's background attribute allows you to change the colour of any element's background (what paints underneath the content in that element). It's a shorthand property, which means you can write what would otherwise be numerous CSS properties in only one.
CSS has various attributes for decorating an element's backdrop, such as colouring the background, inserting images in the background and regulating their placement, and so on. Background-color, background-image, background-repeat, background-attachment, and background-position are the background properties.
The background-size attribute allows us to adjust the width and height of our image to fit the screen. We can instruct the browser where to put the image on the screen by using background-position.
CSS shorthand properties allow you to set the values of numerous other CSS properties at the same time. You can save time and energy by writing more brief (and frequently more readable) style sheets by using a shorthand attribute.
CSS attributes allow authors to specify an element's foreground and background colours. Colors or images can be used as backgrounds. Authors can use background attributes to position a background picture, repeat it, and specify whether it should be fixed to the viewport or scrolled with the document.
Learner's Ratings
4.3
Overall Rating
69%
15%
7%
4%
5%
Reviews
R
Rudra
4
Sir thanks a lot
S
Shubham Shinde
5
good
C
Chandan kumar sharma
4
aap jo is video me bata rahe hai ki pahle ye sab padha hai position ke bare me to kaha padhaye hai abhi tak wo sab ?
M
Monika Rana
5
Great Explaination!
V
Vishal
5
Its really good teacher
Best explanation
N
Neha Chaprana
5
all good
V
Vivek kumar
5
forums feature is not working ☹️
Q
Qitmeer Raza
5
This Course Is Very Helpful For Beginners !! THANKS, A LOT
Share a personalized message with your friends.