Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS Framework Basics Prototyping with Bootstrap Using the Grid System

Ryan Bent
Ryan Bent
6,433 Points

How would I set it up if I wanted my content stacked in one row through all devices?

Using the bootstrap grid system

3 Answers

David Rynn
David Rynn
10,554 Points

Since you used the word "stacked" I'm wondering if you meant put all your content in one column?

See http://getbootstrap.com/css/#grid

<div class="row">
   <div class="col-md-12">
      Your content here
   </div>
</div>
<div class="row">
   <div class="col-md-12">
      The next row of your content here
   </div>
</div>

etc... I think if you meant one row, or one column, in either case, you're defeating the purpose of using something like bootstrap because there's only one element.

This may help you out. It explains how you can do what you are asking.

http://getbootstrap.com/css/

Gwenaรซl Magnenat
Gwenaรซl Magnenat
14,617 Points

You can put your content directly in a row and don't use the column classes.