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!
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
Unable to use 100% for the addition of the column width and have them operating as floats at the same time
For both media queries, I am unable to have the total width of .primary + .secondary +.tertiary to equal 100%. If I do, the columns won't work as floats. In order for both queries to work, I had to decrease the width of the columns so that when added they come up to 90%.
I don't understand why this is happening
Steven Parker228,026 Points
Typically, padding, borders, and margins are not counted in width calculations. If any are present, they will cause the element to take up more space than specified in the "width" setting. To compensate you must use a different box sizing model and/or allow a little extra space so things can fit.