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

WordPress

Panagiotis Lianos
Panagiotis Lianos
5,819 Points

Why new row of pictures are aligned to the right?

I added 5 portfolios and the last one drops into a new row but alight allt he way to the right. Thia happening to tohers as well?

3 Answers

Daniel Babbev
Daniel Babbev
10,354 Points

This is how the CSS works. This is supposed to happen!

Add 6 portfolios and they see how they align :)

Panagiotis Lianos
Panagiotis Lianos
5,819 Points

Cheers thanks.
Out of curiosity, know how you would have it have the first alight left and the second align right?

Shane Oliver
Shane Oliver
19,977 Points

To align elements you can use the css property 'float'

selector { float: right; }