0

Как можно в коде ниже сделать перенос строки без центрирования, начиная с левой стороны?

.whiteButton__atm{
  background-color: white;
  padding: 30px;
  height: 100px
  border-radius: 10px;
  width: 200px;
  font-family: 'Inter Medium';
  font-size: 20px;
  cursor: pointer;  
  display: flex;
  align-items: center;
 }
<button class="whiteButton__atm"> <p>Пополнить счет что-то еще</p></button>

2 ответа 2

2

А так?

.whiteButton__atm {
  background-color: white;
  padding: 30px;
  height: 100px border-radius: 10px;
  width: 200px;
  font-family: 'Inter Medium';
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.whiteButton__atm p {
  text-align: left;
}
<button class="whiteButton__atm"> <p>Пополнить счет что-то еще</p></button>

1

.whiteButton__atm{
  background-color: white;
  padding: 30px;
  height: 100px
  border-radius: 10px;
  width: 200px;
  font-family: 'Inter Medium';
  font-size: 20px;
  cursor: pointer;  
  display: flex;
  align-items: center;
  text-align: left;
 }
<button class="whiteButton__atm"> <p>Пополнить счет что-то еще</p></button>

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge you have read our privacy policy.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.