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
raykennedy2
11,391 Pointsaligning images?
in the body of my page i am trying to align images 4 down 5 across, completely lost
bushaf
34,523 Pointsimg { height: 50px; display: inline-block; width: 19%; margin:.3%; background: blue; } try this and go from there
2 Answers
raykennedy2
11,391 Pointsthanks, this was the line of code i needed #gallery li:nth-child(4n) { clear: left; }
Rafael silva
23,877 PointsI know what does it means , if you have three img you need to put ,in html <img src="" href="" > in css display= inline-block; then you need to put a <div> for every img,and I hope help you in something.
Jacob Mishkin
23,118 PointsJacob Mishkin
23,118 Pointscan you post your markup for what you have already. if you are using display inline block, and a percent width, I would divide by 5 and use that number as your width, but remember about whitespace, and margins + padding.