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

CSS Framework Basics Build a Website with Bootstrap Building the Navbar

Logo images

Hi. I have troubles with my image it doesn't appear and don't know why there is another way to put the images in the navbar?

Cameron Cottle
Cameron Cottle
13,742 Points

Could you post your code please?

yes, thanks --- css--- .navbar-brand{ margin-top: -15px; text-indent: 100%; white-space: nowrap; overflow: hidden; background: url('imagenes/bnc_logo1.png') no-repeat; background-size: 100%; } .navbar-text{ font-family: Montserrat 700; font-weight: 700; font-size: 1.5em; color: #009943; margin right:20px;

}

---html---

<nav class="navbar navbar-fixed-top navbar-default" role="navigation">
    <div class="container">
    <a class"navbar-brand pull-right" href="#">bancompara</a>
    <p class="navbar-text pull left"> llámanos al 55 5522-992499</p>
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                <span class="sr-only"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            </div>

3 Answers

Kevin Kenger
Kevin Kenger
32,834 Points

Hey Monica,

I also noticed in your HTML, you don't have an = between class and navbar-brand, which would mess up your .navbar-brand selector.

EDIT: yeah, what Cameron said.

Thanks, I didn't notice :p

Cameron Cottle
Cameron Cottle
13,742 Points

I noticed that the logo url is in the imagenes folder, is this actually the folder name or should it be images instead?

it is imagenes, it's spanish :)

Cameron Cottle
Cameron Cottle
13,742 Points

Also you are missing the = on you anchor tag.

it should be

<a class="navbar-brand pull-right" href="#"></a>