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

CSS How to Make a Website Styling Web Pages and Navigation Style the Portfolio

Slava S
Slava S
3,112 Points

why are the spaces on the left and right sides of the image columns greater than the space between the columns?

If there is a 2.5% margin for each list item, shouldn't the space on the left and right side of the image (next to the images) be smaller than the space between the two columns (which would be 2.5% plus 2.5%). is there an extra margin on the sides?

1 Answer

This is a little difficult to answer without seeing the source code but to answer your question, yes. In theory, the center margins should be greater than the outside margins. The outside margins could be larger because of parent element padding (especially if you haven't used normalize.css which strips the basic padding away from each browser default). I would start by looking through the parent elements styles and from there, look through your inspect tools within your browser to see what styles are being applied to your elements in question. I hope this helps!