I'd like to display a button with an image and text. The text and image must be centered and on the same row/line.
In Firefox the image and text are always on separate lines. How can I solve this?
This is what I've got:
button {
display: inline-flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: center;
align-content: stretch;
align-items: center;
}
button img {
order: 0;
flex: 0 1 auto;
align-self: auto;
}
button span {
order: 0;
flex: 0 1 auto;
align-self: auto;
}