position (CSS)
Në shqip përdoret i njëjti emër.
ShpjegimiSQ
Vetia position vendos si pozicionohet një element: relative e lëviz pak nga vendi i vet, absolute e vendos saktë brenda prindit, fixed e mban në të njëjtin vend kur bën scroll, sticky e ngjit kur arrin te maja. z-index vendos cili del sipër kur mbivendosen.
EnglishEN
The position property decides how an element is placed: relative nudges it from its normal spot, absolute places it exactly inside its parent, fixed keeps it in place while you scroll, sticky makes it stick when it reaches the top. z-index decides which one is on top when they overlap.
Si ta mendosh
Si në klasë: shumica ulen me radhë (normale), mësuesja qëndron gjithmonë para tabelës (fixed), ndërsa një poster ngjitet në mur në një pikë të saktë (absolute).
Lexoje në anglisht
Like a classroom: most students sit in order (normal flow), the teacher always stands at the front (fixed), and a poster is pinned to an exact spot on the wall (absolute).
Shembull kodicss
.koka { position: sticky; top: 0; } /* si koka e kësaj faqeje */
.distinktiv { position: absolute; top: 8px; right: 8px; }