CodeToFun
Learn Programming Free
Tutorials
Languages
Features
About
Sign In
Tutorials
Languages
Features
About
Sign In
Back
/
CSS position Property
CSS position property — static, relative, absolute, fixed, sticky
Try It
Run
Reset
Save
Save to Google Drive
Sync with your Google account
Download HTML
Save to your device
Share
Full
HTML Code
Copy
CSS position Property Example
CSS position Property Example
Static — normal document flow.
Relative — offset from its normal spot.
Absolute — removed from flow, placed by top/left.
Sticky — sticks when you scroll past it.
Scroll down to see sticky and fixed behavior.
Fixed — stays on screen while scrolling.
Lines:
0
| Characters:
0
Live Preview
Auto-refresh on Run