K
K
kentos2019-03-27 11:31:49
css
kentos, 2019-03-27 11:31:49

How to make this form in bootstrap?

Hello, I can’t implement such a layout in any way, does anyone know how?5c9b34f325169229815097.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
ReActor Dmitry Vershansky, 2019-03-27
@HunteR-VRX

Hello! Here you go (with bootstrap connected)

<div class="container">
  <div class="row">
    <div class="col-12 col-md-3">
      <div class="avatarBlock">
        <form>
          <input type="checkbox" name="absolute" value=""/>
        </form>
      </div>
    </div>
    <div class="col-12 col-md-8">
      <span>ф.и.о</span>
      <input type="text" name="" value=""/>
      <span>Предмет</span>
      <input type="text" name="" value="" placeholder="Русский и язык литература"/>
      <input type="checkbox" name="" value=""/>
      <span class="teacher">Классный руководитель</span>
    </div>
  </div>
</div>

.avatarBlock {
  width: 150px;
  height: 200px;
  background: #ccc;
  border-radius: 5px;
  position: relative;
}

input[name="absolute"] {
  position: absolute;
  bottom: 5px;
}

input[type="checkbox"] {
  display: block;
}

span {
  display: block;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

input[type="text"] {
  width: 350px;
  border-radius: 3px;
  border: solid 1px #bbb;
  outline: none;
  padding: 10px;
}

.teacher {
  text-transform: none;
  font-weight: 100;
}

A
Alex, 2019-03-27
@Kozack

Make the format two columns. It's not entirely clear what the problem is

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question