I have button
within a div
of which I can not centralize it. Through margin-left
I can do this, but to treat the same in responsiveness is very annoying.
Code of button
together with div
:
<div class="actions responsivo">
<button type="button" title="Adicionar ao carrinho" class="button btn-cart responsivo amarelo" onclick="addCartao('<?php echo $_product->getId(); ?>')" name="cartaoMensagem<?php echo $_product->getId(); ?>" id="cartaoMensagem<?php echo $_product->getId(); ?>"><span><span>Adicionar</span></span></button>
</div>
CSS
used:
.actions.responsivo {
text-align: center;
}
.button.btn-cart.responsivo.amarelo {
color: #ffffff;
font-size: 12px;
text-transform: uppercase;
background: #e7af19;
border-radius: 3px;
padding: 7px 50px;
border: none;
cursor: pointer;
display: block;
margin-top: 19px;
text-align: center;
line-height: normal;
margin-left: 12px !important;
font-family: 'CoHeadlineCorp-Light';
font-weight: bold;
}