how to fix spinner always center in responsive code example Example: center a spinner css .loader { left: 50%; margin-left: -4em; }