What is positions in CSS | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

What is positions in CSS

Please help me what's positions in CSS HELP.

5th Jun 2020, 10:29 AM
Safder Raza
Safder Raza - avatar
6 Answers
+ 2
Position property is used to specify the position of elements. Five types of position- 1. Static: no special position element position in normal page flow. 2. Absolute: Element position with reference to the page. 3. Relative: Element position with respect to the parent element. 4 Sticky : Element stick to either top or bottom while scrolling the page. 5. Fixed: Element position which stays in the same place where you position them. Note: After declaring the position we use the top,bottom, right and left value to specify the position (use any of them for your relevance) Eg. p{ position:any; ( if required )top:any; ( if required )bottom:any; ( if required )left:any; ( if required ) right:any; } No need to use them all. Use the property if required.
5th Jun 2020, 2:10 PM
šŸ”„VENAGEšŸ”„
šŸ”„VENAGEšŸ”„ - avatar
+ 1
TheĀ positionĀ property specifies the type of positioning method used for an element (static, relative, fixed, absolute or sticky).
5th Jun 2020, 10:31 AM
Muhammad Galhoum
Muhammad Galhoum - avatar
5th Jun 2020, 10:32 AM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 1
Welcome Safder Raza
5th Jun 2020, 10:35 AM
Muhammad Galhoum
Muhammad Galhoum - avatar
0
We can make web developer watsapp group
5th Jun 2020, 11:44 AM
Safder Raza
Safder Raza - avatar
- 2
Thanks you
5th Jun 2020, 10:32 AM
Safder Raza
Safder Raza - avatar