Hacker News new | ask | show | jobs
by spung 5247 days ago
I've incorporated Bootstrap 1.4 to use its styling (fonts, buttons, etc) but I'd like to get into the responsive features of 2.0. How exactly does the grid layout work, how should I layout my content? Which columns should I use and how would they adapt to changes in device max width? Thanks in advance!
1 comments

It's pretty much as easy as wrapping the content in .container, .row, and .spanN tags. The responsive part should take care of itself by collapsing horizontal elements into vertical arrangements, and adjusting widths to keep them within the viewport.

There are some edge cases for various components (such as the Bootstrap navbar) that require some special markup and Javascript to collapse intelligently.