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!
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
Amandeep Pasricha14,932 Points
Having trouble separating float elements properly in footer for mobile-view?
Hello, I've been referencing these videos to work on project 2. In my footer, I feel like I'm doing something wrong. In mobile view, the two floated elements appear way too close to each other. Should I just decrease the font-size or is there something else I can do?
Jamie ReardonTreehouse Project Reviewer
Without looking at your css, a quick glance of your html shows that you have a ul within a ul element. This sounds like the issue for your floats to me. Instead a better approach if you want to have another list inside a list, you need to have it within a li like so:
<ul> <li></li> <li> <ul> <li></li> </ul> <li></li> </ul>
Your elements are probably appearing "too close" because they are not properly separated by their content. Meaning, they are all nested inside one ul. Separate your student name link from the footer nav and float them left and right.