1
I have this button, I’d like to add two words to it, but by displaying one on top of the other, I’ve tried one <br>
between them but it’s like creating another button, I would like a button with the proportions that are there, but that one text was on top and the other bottom, I don’t know much css, anyone would know how to do? I’d like to let Finish up and Buy down
<button type="button" title="Finalizar Pedido" class="button btn-checkout btn-inline "
style="width: 93px; line-height: 50px; display: inline-block;"><span><span>Finalizar Compra</span></span></button>
Thank you very much, that was it then, because I normally use the line-height.
– Gustavo Souza
I copied and pasted with the same properties as yours, but here the text pops off the button and leaves the area..
– Gustavo Souza
In this case it is probably because you are using a fixed width with a very large text. I suggest you put the <br> for the line break, remove the fixed width and put a padding also on the sides, so the button is dynamic adjusting to the content.
– Diego Marques