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 trialMohamed Jadib
4,200 Pointsmy 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
Courses Plus Student 12,884 PointsHello! 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.
Mohamed Jadib
4,200 PointsMohamed Jadib
4,200 PointsI 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 :-)