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 Framework Basics Build a Website with Bootstrap Building the Navbar

John Lukacs
John Lukacs
26,806 Points

Background img in navbar pushing <a> link all the way to the right

.main-logo {
width: 164px;
height: 60pxpx;
text-indent: 100%;
white-space:nowrap;
margin-top: 8px;
background:url(john.png) no-repeat;
background-size:30%;
}
<a href="#" class="pull-left main-logo">JohnBow </a>
John Lukacs
John Lukacs
26,806 Points

I am using bootstrap for this and do have the pull-left class. When I remove the overflow the link displays on the right hand side

2 Answers

John Lukacs
John Lukacs
26,806 Points

It was the text indent property set to 100% I don't know why Guil included that percent

Not sure if it's causing the issue you're having, but the value for the height property has a typo, you've written px twice:

height: 60pxpx;