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 trialGena Israel
2,047 Pointscan someone explain this question: Say we have two floated list items with a width of 45% each. Which of the following
I thought it would be 45 plus 45 and a remainder of 10
1 Answer
Damien Watson
27,419 PointsHi Gena,
I think the key is, which if applied to the list 'items' will fit (2 items).
Two list items at 45% = 90%, but if you add 10% to the left and right of each you would get 130%.
margin: 10%; /* Adds 10% margin all around */
So you want the ? percentage | ?% | list item 1: 45% | ?% | | ?% | list item 2: 45% | ?% |
Hope this helps you understand without giving away the answer (too much ;)