Герб Укріїни
Believe in Ukraine and the Armed Forces. Glory to Ukraine!

Grid with 5 columns in Twitter Bootstrap

30.11.2016

This article is from the blog archive. For fresh content on artificial intelligence, see the AI section.

Every web developer who uses Twitter Bootstrap for responsive design faces the question – how to create a grid with 5 columns. We know that Bootstrap uses a 12-column grid. It divides into 2, 3, or 4 blocks in one row. But what if we need 5 blocks? Here is an example from when I encountered this issue. Look at the screenshot – I needed to place 5 blocks in one row.

Grid with 5 columns in Twitter Bootstrap (How to do it? Here’s the answer)

 

And there is an answer, you just need to do two steps.

1. Add styles

2. Create the 5-column Bootstrap grid structure like this:

 

The 5-column grid in Twitter Bootstrap is ready. Now you can create 5 columns anywhere on your site. Enjoy the result. If you have questions, ask them in the comments.

Leave a Reply

Your email address will not be published. Required fields are marked *