html - Center loader inside div -


i have loader:

.loader_ajax_small {   border: 2px solid #f3f3f3 !important;   border-radius: 50%;   border-top: 2px solid #2d2d2d !important;   width: 29px;   height: 29px;   -webkit-animation: spin_loader_ajax_small 2s linear infinite;   animation: spin_loader_ajax_small 2s linear infinite; }  @-webkit-keyframes spin_loader_ajax_small {   0% { -webkit-transform: rotate(0deg); }   100% { -webkit-transform: rotate(360deg); } }  @keyframes spin_loader_ajax_small {   0% { transform: rotate(0deg); }   100% { transform: rotate(360deg); } } 

but can't understand how can center horizontally inside div, example:

enter image description here

as can see on left want centered, how can it?

set loader margin auto

margin:10px auto; 

Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -