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

General Discussion

Header float left

In the "Adjust the profile page and header" video, Nick teaches you how to make your header responsive, including sending your h1 and h2 (id="logo") text to the left when you broaden the window. For some reason my text will only move about halfway from the center to the left when I apply:

#logo {
    float: left;
    margin-left: 5%;
    text-align: left;
    width: 45%;
  }

I tried removing the width of 45% and it went all the way to the left, but my h2 remained centered underneath the h1 text. Any idea what I might be doing wrong?

Thanks!

1 Answer

Hi Taylor

If you add your full HTML and CSS to a pen on CodePen it will be easier for someone to be able to tell what is happening and help you solve the issue.