Answer the question
In order to leave comments, you need to log in
How to align text to the center?
Hey! There is a button with an icon and text:
<button id = "search_button" title = "приступить к поиску"><img src="img/search.png">найти</button>
Answer the question
In order to leave comments, you need to log in
I would do like this:
button#search_button {
background: url('img/search.png') no-repeat center left;
height: 36px;
width: 90px;
text-align: end;
}
button img, button span { display: inline-block; }
<button id = "search_button" title = "приступить к поиску"><img src="img/search.png"><span>найти</span></button>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question