3
How do I align the div with black and transparent background where it contains the buttons in the center of the page independent of the monitor resolution?
The code I’m using is this:
.fundo{
background-color: rgba(10,23,55,0.7);
padding: 20px;
margin: 200px auto;
}
<div class="col-md-12 fundo" align="center">
<button class="btn btn-primary">ACESSO CONSULTOR</button>
<button class="btn btn-primary">ACESSO GERENTE</button>
</div>
I don’t understand your doubt, it’s already centered
– Rafael Augusto
Hello Rafael. But I would like to adjust the code so that it is compatible in other resolutions. I’m not very good at CSS and I don’t know if the code I’m using is right.
– user24136
Are you using any front-end framework?
– Rytter
Hi Lukas. I’m using Bootstrap, but the div containing the buttons is right after the body tag
– user24136
maybe this will help you a little bit, https://answall.com/questions/8602/comor- we are divs-responsive
– Rafael Andrade
Center anything: https://answall.com/a/252419/8063
– Sam