3
Guys I got two button
that are aligned in the center using display: block;
. The problem is that one sits on top of the other, to stand next to the other I used display: tale-cell;
and the problem is that they don’t stay in the center.
How do I place one next to the other and aligned in the center of the page?
button {
display: table-cell;
border:0;
padding:10px;
width:200px;
height: 50px;
margin: 20px auto;
cursor: pointer;
border-radius: 3px;
}
<button type='submit'>bt1</button>
<button type='submit'>bt2</button>
worked 100%, but would have some way to resolve without having to create 2 div?
– Hugo Borges
With a single div, you can assign it to the two classes (not recommend), or you can merge the two CSS classes into a single class.
– Oralista de Sistemas