Urigo / angular-spinkit

SpinKit (http://tobiasahlin.com/spinkit/) spinners for AngularJS
MIT License
189 stars 36 forks source link

Centered spinner #23

Closed arjanvaneersel closed 9 years ago

arjanvaneersel commented 9 years ago

It's unclear to me how to have the spinner centered on the absolute middle of the page.

I tried to put the directive into a div, which I then center through CSS, but that has no effect at all.

How to accomplish this?

cleor41 commented 9 years ago

To center it here's the styling I placed on the spinner directive (in my case the double-bounce-spinner).

position: fixed;
left: 50%;
top: 50%;
z-index: 10000;
margin-top: -120px;
margin-left: -20px;

Where the margin is tailored to the spinner. I placed the directive in my topmost div.

Urigo commented 9 years ago

thanks @cleor41 closing