skip to Main Content

Css – Centering a loading spinner

I want to ensure my loading spinner is always centered when used, in a table, a button, ... .th-loader { .progress { top: calc(50% - (var(--loading-indicator-border)/2)); left: calc(50% - (var(--loading-indicator-border)/2)); width: var(--loading-indicator-border); aspect-ratio: 1; background: #006edb; border-radius: 50%; transform: rotate(0deg)…

VIEW QUESTION
Back To Top
Search