Wątek przeniesiony 2019-01-02 09:06 z Newbie przez Adam Boduch.

Button z obrazkowym tłem

0

Witam.
Mam taki kod:



.subbmitCommentBtn {
  background: url("../images/ikon2.png") no-repeat center top;
  padding-right: 15px;
  padding-left: 15px;
  color: white;
  cursor: pointer;
  height: 56px;
  width: 253px;
  background-color: #AF191F;
  background-position: left;
  background-repeat: no-repeat;
  font-weight: bold;
  border-radius: 20px;
  border: none;
}

<input type="submit" value="Dodaj komentarz" class=" subbmitCommentBtn">

Mam problem z tłem. Obrazek nachodzi mi za bardzo na lewą stronę. Chciałbym go odsunąć o 10px od lewej krawędzi buttona.
https://ibb.co/3kf6VNm

Wie ktoś może jak to zrobić?

1 użytkowników online, w tym zalogowanych: 0, gości: 1