سؤال

I'm trying to try bootstrap's grid system on jsfiddle but I'm unable.

See it on jsfiddle

I've taken bootstrap doc example:

<div class="row">
    <div class="col-md-1">.col-md-1</div>
     ...
</div>

items get stacked instead of horizontally aligned.

هل كانت مفيدة؟

المحلول

items get stacked instead of horizontally aligned.

because that is the intended result when the viewport is resized - in your case, using col-md classes, the columns would start stacking in a viewport that is less than 992px. Look at your same fiddle in fullscreen, or just resize the window horizontally.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top