Welcome to the Treehouse Community
Looking to learn something new?
Making a Sidebar
Using the offset and grid columns, how would I make a setup with a main area that spans about 75% of the page and a right sidebar spanning the other 25%?
Hey Chase, Using the Bootstrap grid and predefined classes and you can do what you want using code like this.
<div class="row"> <div class="col-sm-9"> This is the the left part of your row spanning 75% of the page. With Bootstrap, there are a total of 12 columns, and 9 columns is equal to 75% of the total. </div> <div class="col-sm-3"> This will be the side bar, or the right side of your row, spanning 25% of the page, or three columns. These columns will stack on top of each other in small and extra small devices. In devices bigger than "small" devices they will be together in the same row. </div> </div>