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

WordPress From Bootstrap to WordPress Create Bootstrap Styled Theme Templates Creating a Portfolio Landing Page

Ian Mackenzie
Ian Mackenzie
11,062 Points

I didn't get the portfolio count trick

Totally lost me on that one. I didn't understand why we needed it?

1 Answer

Hi Ian,

Visually it's probably not noticeable but in Bootstrap a row is made up of 12 columns. Each portfolio item takes up 3 columns so in theory there should be only 4 per row.

Currently there are 8 portfolio items being added to 1 row (seen at 14:22 here). In order to correct this so they're displayed over 2 rows the count is used.

This then adds a closing row after every 4th portfolio item meaning the final result is 8 portfolio items displayed over 2 rows.

Tried to explain that the best I could so hope it helps make it a little clearer :)

-Rich

Ian Mackenzie
Ian Mackenzie
11,062 Points

Thanks for the explanation Rich, I now understand :-)

No problem. Glad I could help :)

-Rich