z-index & stacking
Në shqip: z-index dhe shtresat
ShpjegimiSQ
z-index vendos cili element del sipër kur mbivendosen (modale, menu, njoftime). Punon vetëm me elementë të pozicionuar, dhe „stacking context“ mund ta bëjë të çuditshëm — shkak klasik i „pse s'del sipër?!“.
EnglishEN
z-index decides which element sits on top when they overlap (modals, menus, toasts). It only works on positioned elements, and “stacking contexts” can make it weird — a classic cause of “why won't it go on top?!”.
Si ta mendosh
Si letrat e vendosura njëra mbi tjetrën në tavolinë.
Lexoje në anglisht
Like sheets of paper stacked on a desk.
Shembull kodicss
.modali { position: fixed; z-index: 1000; }