Новая строчка начинается без отступов
.dish_description {
margin-top: 24px;
width: 400px;
}
.dish_description a {
padding-left: 90px;
font-size: 16px;
font-family: 'Playfair Display', serif;
}
<div class="dish_description">
<a href="#">If you're looking for decadence, look no further — you've found the Holy Grail of desserts. Honestly, this cake makes us wonder why Bananas Foster hasn't always been served on top of ice cream cake.</a>
</div>
Ответы (1 шт):
Автор решения: HamSter
→ Ссылка
Вы добавляете внутренний отступ inline элементу (ссылка по умолчанию display: inline).
Чтобы отступ сработал, нужно чтобы ссылка была блочным элементом (или отступ задавать родительскому div элементу .dish_description, который по умолчанию display: block):
.dish_description {
margin-top: 24px;
width: 400px;
}
.dish_description a {
padding-left: 90px;
font-size: 16px;
font-family: 'Playfair Display', serif;
display: block;
}
<div class="dish_description">
<a href="#">If you're looking for decadence, look no further — you've found the Holy Grail of desserts. Honestly, this cake makes us wonder why Bananas Foster hasn't always been served on top of ice cream cake.</a>
</div>
