This content originally appeared on DEV Community and was authored by Kaviya R
Position:
position property is used to specify the particular element to positioned with in the document.There are five ways to position the element in css.
- Static: Its the default value of any element.For example if the element is created initially it will be in default position.
- Relative: The element is positioned relative to its normal position in the document flow.It can be adjust by using left,right,top,bottom properties in css.
- Absolute: The element is removed from the normal document flow,so it won't take up space in the document flow.
- Fixed: This element will stay in the same position even if the page is scrolled. -Sticky: This element is positioned based on the user's scroll point.until some point it reacts like relative after some point it will behave sticky.
This content originally appeared on DEV Community and was authored by Kaviya R
Print
Share
Comment
Cite
Upload
Translate
Updates
There are no updates yet.
Click the Upload button above to add an update.

APA
MLA
Kaviya R | Sciencx (2025-03-05T16:49:00+00:00) LEARNING HTML-7. Retrieved from https://www.scien.cx/2025/03/05/learning-html-7/
" » LEARNING HTML-7." Kaviya R | Sciencx - Wednesday March 5, 2025, https://www.scien.cx/2025/03/05/learning-html-7/
HARVARDKaviya R | Sciencx Wednesday March 5, 2025 » LEARNING HTML-7., viewed ,<https://www.scien.cx/2025/03/05/learning-html-7/>
VANCOUVERKaviya R | Sciencx - » LEARNING HTML-7. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/03/05/learning-html-7/
CHICAGO" » LEARNING HTML-7." Kaviya R | Sciencx - Accessed . https://www.scien.cx/2025/03/05/learning-html-7/
IEEE" » LEARNING HTML-7." Kaviya R | Sciencx [Online]. Available: https://www.scien.cx/2025/03/05/learning-html-7/. [Accessed: ]
rf:citation » LEARNING HTML-7 | Kaviya R | Sciencx | https://www.scien.cx/2025/03/05/learning-html-7/ |
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.