align contents of a div in the center of the screen

2

I have a loading and it is in <div> . It turns out that it always fires left and I would like it to be in the center of the page, but since it is in <div> , I thought that could be it.

<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
    <div id="loading" style="align-content:center">        
        Carregando....
        <div><img src="../Imagens/wait2.gif" /></div>        
    </div>
</asp:Content>
    
asked by anonymous 18.01.2016 / 19:22

1 answer

2

The correct one is text-align:center

<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
    <div id="loading" style="text-align:center">        
        Carregando....
        <div><img src="../Imagens/wait2.gif" /></div>        
    </div>
</asp:Content>
    
18.01.2016 / 19:25