how can I lining up this div in the middle and center but without losing the proportion of the objects and gets deformed on the cellphone?
I tried as follows:
My div:
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h1>Você solicitou o download para o seguinte arquivo:</h1>
<p class="lead">file.xxx</p>
<ul class="list-unstyled">
<li>Estamos protegendo a Hacchi Fansub contra bots e pessoas mal intencionadas, para continuar, basta resolver o simples captcha abaixo.</li>
</ul>
<form action="" method="post">
<div class="g-recaptcha" data-sitekey="6LfMECUUAAAAABSGjGQjKQnaRMpUv5rt0MEUnGZ9"></div>
<input type="submit" value="Clique aqui para continuar!" />
</form>
</div>
</div>
My modified class:
.row {
position: fixed;
left: 35%;
top: 45%;
text-align: center;
margin-left: -273px; /*half width*/
margin-top: -132px; /*half height*/
width: auto;
}
In the computer's browser it was perfect:
But in the mobile phone navigator:
All the help is welcome, thank you now.