A
A
Alexander2015-11-15 17:02:22
css
Alexander, 2015-11-15 17:02:22

How to use row correctly?

1 Option :

<div class="row">
<div class="col-md-7"><input type="text" placeholder="Как вас зовут?"></div>
<div class="col-md-5"><input type="text" placeholder="E-mail"></div>                              
</div>
<div class="row">
<div class="col-md-12"><button>Отправить</button></div>
</div>

Option 2
<div class="row">
<div class="col-md-7"><input type="text" placeholder="Как вас зовут?"></div>
<div class="col-md-5"><input type="text" placeholder="E-mail"></div>
<div class="col-md-12"><button>Отправить</button></div>
</div>

Which option is correct? I'm leaning towards the first.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
sergey, 2015-11-15
@kentuck1213

The first option, in one .row 12 col (or 24 if the grid is like this)

I
ixon, 2015-11-15
@ixon

The first option is more correct, but the second one will do. Row is like a row of columns, and in theory there should be only one row of columns in one row, however, in practice this is not so important.

K
Konstantin Dovnar, 2015-11-15
@SolidlSnake

The second one is even better because after some time returning to the project or connecting a third-party person to it, it will be easier to navigate the layout without wasting time understanding where which row is.

D
De YURII, 2015-11-16
@Dejurin

All this garbage, 2 options deserve attention, these two options are good in their own way. Everything depends on the situation.
igas.com.ua/brands here is an example, you can play around with stretching.

<div class="row">
                <div class="col-xs-6 col-sm-3 col-md-2 col-lg-2">
            <a href="http://igas.com.ua/brands/6" title="AllEnergo, Олэнерго" class="thumbnail"> 
                <img src="http://igas.com.ua/img/brands/allenergo.png" style="width:160px;" alt="AllEnergo">
            </a>
        </div>
                <div class="col-xs-6 col-sm-3 col-md-2 col-lg-2">
            <a href="http://igas.com.ua/brands/22" title="Amic, Amic Energy" class="thumbnail"> 
                <img src="http://igas.com.ua/img/brands/amic.png" style="width:160px;" alt="Amic">
            </a>
        </div>
                <div class="col-xs-6 col-sm-3 col-md-2 col-lg-2">
            <a href="http://igas.com.ua/brands/16" title="ANP, Альфа-Нафта" class="thumbnail"> 
                <img src="http://igas.com.ua/img/brands/anp.png" style="width:160px;" alt="ANP">
            </a>
        </div>
...

PS: but in this situation it is more logical to use the first option.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question