Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show Spinner at the center of HTML5 Page?

Hi am trying to create a simple blank html page with a spinner at center.For example something like in that image.

enter image description here

like image 566
Bangalore Avatar asked Apr 20 '14 16:04

Bangalore


1 Answers

Find a spinner gif online- http://www.ajaxload.info or create one yourself. Then use the following code to centre it in your page:

.spinner{ position: absolute; height: 100px; width: 100px; top: 50%; left: 50%; margin-left: -50px; margin-top: -50px; background: url(/link/to/your/image); background-size: 100%; }

like image 74
Ronnel Davis Avatar answered Nov 11 '22 20:11

Ronnel Davis