☚ लेसन के लिए यहाँ क्लिक करे ।

Lesson - 21

CSS : Position Property


There are five different position values:



1. Position:static

2. Position:relative

3. Position:fixed

4. Position:absolute

5. Position:sticky






Position : static



HTML Code






CSS Code





Output








Position : relative



HTML Code






CSS Code





Output








Position : fixed



HTML Code






CSS Code





Output








Position : absolute



HTML Code






CSS Code





Output








Position : sticky



HTML Code






CSS Code





Output