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 trialIan Mackenzie
11,062 PointsI didn't get the portfolio count trick
Totally lost me on that one. I didn't understand why we needed it?
1 Answer
Rich Bagley
25,869 PointsHi 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
11,062 PointsIan Mackenzie
11,062 PointsThanks for the explanation Rich, I now understand :-)
Rich Bagley
25,869 PointsRich Bagley
25,869 PointsNo problem. Glad I could help :)
-Rich