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

CSS

How do I keep this code from pushing around other content in my nav?

a:hover { font-size: 1.1em; }

Hey Cristo!

Do you have an example/workspace to share?

1 Answer

My guess is, that the link ("a") tags font is smaller, so when you hover over it, the size grows, thus pushing the content off a bit. Easiest solution would be, is to give the list item ("li">) a fixed width. Currently there are none, causing it to grow and shrink.

Check out my solution on sassmeister.

http://sassmeister.com/gist/2e314a78f12e40bca8d5