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 Bootstrap 4 Basics (Retired) Using Bootstrap Components Building a Navbar

mohammed mayat
mohammed mayat
4,228 Points

links not next to nav

I am having a problem with nav bar I want my links to be next to my logo but there seem to be a massive space there I have removed margin right in developer tools but it has not made a difference, codepen https://codepen.io/mmayat10/pen/mMagGj or http://port-80-5qbuy84fxk.treehouse-app.com/

1 Answer

Adding this to your CSS fixes the issue:

.navbar-brand {width: 15%;}
.logo {width: 90%; max-width: 130px;}

I hope that helps. Cheers.