0

bootstrap. Как текстовое поле выровнять по всей ширине в td?

<td><input type="text"></td>

1 ответ 1

5
  1. Использовать стандартную bootstrap форму и поля
  2. Задать полю ширину в 100% - class="w-100"

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" >
  
  <div class="container">
    <table class="table table-bordered">
      <tbody>
        <tr>
          <td>
            <div class="form-group">
              
              <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
            </div>
          </td>
          <td>
            <input type="text" class="w-100" placeholder="Текстовое поле">
          </td>
        </tr>
      </tbody>
    </table>
  </div>

Ваш ответ

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

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