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
Chris Ascencio
8,785 PointsHow do i align my image gallery horizontally?
i can manage to layout the images in my image gallery, why is this? Any tips, trick, and comments are welcome.
Right under featured specimen section
1 Answer
Alex Durrell
11,862 PointsHey Chris,
You could use the CSS inline-block property. Here's an example:
.dog_img{
display:inline-block;
}
Those should align your images horizontally. Hope that helps!
Chris Ascencio
8,785 PointsChris Ascencio
8,785 Pointscould you please check my code. I used the display: inline block; but its still not rendering.