A
A
Alexander Sharomet2015-11-24 11:55:49
css
Alexander Sharomet, 2015-11-24 11:55:49

How to properly format such code in bootstrap 3?

Hello.
Question
: Why write something like this:

<div class="container">
 <div class="row">
  <div class="col-sm-12">
   <p>Hello world</p>
  </div>
 </div>
</div>

If I don't use .col- inside the container, would n't it make more sense
to write it like this:
<div class="container">
   <p>Hello world</p>
</div>

The result is the same, just less code.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kostya Gorozhanov, 2015-11-24
@sharomet

Yes you are right.
So it will be more logical, and at the same time correct!
On the off site of the bootstrap, it is decorated in the same way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question