Search code examples
htmlcssuser-experiencegetuikit

UIkit align the spinner to the center


I'm trying to align UIKit's (3.0.0) spinner to the center of the page. But it won't.

I have tried applying align to it directly and wrapping it in container like this but nothing works:

<div class="uk-inline uk-margin">
 <div class="uk-position-center">
   <div uk-spinner></div>
 </div>
</div>

Any ideas?

https://getuikit.com/docs/spinner


Solution

  • Please try this only.

    <div class="uk-position-center">
      <div uk-spinner></div>
    </div>