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 trialGiovanni Valdenegro
13,871 PointsCalculating with and margin to float into columns?
Nick, mentioned calculating the width and columns based on 4 images, but there are 5 images not 4.
He said 45% x 2 Columns = 90 2.5 x 4 images = 10, for a total of 100. How is the 5th image not counted into the calculation. Why 4?
Thanks.
1 Answer
John Donnell
7,801 PointsI think he means the columns have 2 sides each with a margin of 2.5% on each side... 2 columns with a width of 45% = 90% so 4 sides of margin of 2,5% = 10% + 90% column width = 100%