A
A
August Milovich2019-08-13 19:06:02
Vue.js
August Milovich, 2019-08-13 19:06:02

Why is text not responding to padding?

Good afternoon, there is such code in the vue component:

<div class="todo-list" v-for="todoList in todos">
            <h2 class="todo-name">{{ todoList.name }}</h2>
            <p class="create-todo">Новое задание</p>
            <p class="todo" v-for="todo in todoList.list">{{ todo }}</p>
  </div>

  // стили
  text-align: center
  padding: 12px 5px

Padding works, but when the width goes to the minimum, the text slides to the right:
5d52e01569aee921163627.png
Does anyone know how to fix this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2019-08-13
@CodeInMyHeart

It's more word-wrap than padding

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question