Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML

my list item with id="96" does not align properly under 543px x 199px

Here's the link to my code on CodePen: https://codepen.io/jadib/pen/EXyrqw/?editors=1100

1 Answer

Tray Denney
PLUS
Tray Denney
Courses Plus Student 12,884 Points

Hello! I am not quite sure what you mean by the list item not aligning properly. Are you wanting the text to move to another line at a certain size, like a word wrap? Everything looks aligned on my side, however, on line 32 you are missing a "-" and that could be causing an undesired look.

Moderator Edit: Moved response from Comments section to Answers.

I was actually able to figure it out, the list item would not align properly relative to the other list items once screen is under 543px x 199px because I had a text-center class on the parent element as well as as the list item itself. However I did correct the "-" that was missing on line 32.

Thanks Tray :-)