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 trialJoseph Lu
698 Pointscan't remove the spacing at the very top when setting margin to 0 0 30px 0
i know there's a another post about this and i tried everything in that post and nothing has worked. however, when i use google inspect and remove float: left. everything will work fine as in the video. so can someone explain why it worked this way and not like it in the video?
3 Answers
Frans de Haan
5,193 PointsYou can see you have a fault in your html because there are red lines. Try to find out what before reading further. . . . . . . . . . Two opening ul tags instead of one.
Frans de Haan
5,193 PointsYou need to insert a padding-top: 1px;
For more information you can look at the course: CSS layout
The problem is collapsing I found out.
Joseph Lu
698 Pointswhere do i insert padding-top: 1px? i try to put it in the header but it didn't work.
Frans de Haan
5,193 PointsI can't see the code so it's a bit difficult for me to;P
Joseph Lu
698 Pointshere's my code: https://w.trhou.se/xrngohanag
Joseph Lu
698 PointsJoseph Lu
698 PointsThx, i got it