Height: The height property sets the vertical length of a box. Height is measured in pixels and should not be confused with the measure word “height”.
Width: The width property sets the horizontal length of a box. Width is measured in pixels and should not be confused with the measure word “width”.
There are many properties in CSS, but these 5 are the most commonly used:
background-color
border-top-width
border-top-style
border-right-width
border-right-style
When you give an element a width of 100% in CSS, you're essentially saying, "Make this element's content area precisely equal to its parent's explicit width — but only if its parent has an explicit width." So, if your parent container is 400px wide, a child element with a width of 100% will be 400px wide as well.
The max-width CSS attribute specifies an element's maximum width. It prevents the width property's utilised value from exceeding the value given by max-width.
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.