Two forms side by side

I started using Twitter Bootstrap and tried to place two shapes side by side. By default, if I put two pages on a page, they follow one after another, which attribute should I use to place these forms next to a width of 50%.

+5
source share
1 answer

You can use twitter bootstrap grid features . Sort of:

<div class="row">
    <div class="span6">
        <form>[...]</form>
    </div>
    <div class="span6">
        <form>[...]</form>
    </div>
</div>

EDIT:

with Twitter Bootstrap 3.x

<div class="row">
    <div class="col-sm-6">
        <form>[...]</form>
    </div>
    <div class="col-sm-6">
        <form>[...]</form>
    </div>
</div>

nb: in col sm -6, smmeans small, this means that this grid will only be used for devices with a view space larger than 768px(with default TWBS settings)

+13
source

All Articles