3
I have a button
within a div
which I cannot center on. By means of margin-left
I can do this, but to treat the same in the responsiveness is very massante.
Code of button
together with the 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;
}
Thank you helped me too!
– Gustavo Souza
It worked! Plus I’ll use it for other elements too, so helping me a lot in all ways. Thanks a lot for the help!
– Matheus Portela